Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace magicNumber
- {
- class Program
- {
- static void Main(string[] args)
- {
- int magicNumber = int.Parse(Console.ReadLine());
- for (int a = 1; a <=magicNumber ; a++)
- {
- for (int b = 1; b <= magicNumber; b++)
- {
- for (int c = 1; c <= magicNumber; c++)
- {
- for (int d = 1; d <= magicNumber; d++)
- {
- for (int e = 1; e <= magicNumber; e++)
- {
- for (int f = 1; f <= magicNumber; f++)
- {
- if (a*b*c*d*e*f==magicNumber)
- {
- Console.Write($"{a}{b}{c}{d}{e}{f} ");
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement