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 _09.Magic_Numbers
- {
- class Program
- {
- static void Main(string[] args)
- {
- int magic = int.Parse(Console.ReadLine());
- for (int x1 = 0; x1 < 10; x1++)
- {
- for (int x2 = 0; x2 < 10; x2++)
- {
- for (int x3 = 0; x3 < 10; x3++)
- {
- for (int x4 = 0; x4 < 10; x4++)
- {
- for (int x5 = 0; x5 < 10; x5++)
- {
- for (int x6 = 0; x6 < 10; x6++)
- {
- if ((x1 * x2 * x3 * x4 * x5 * x6) == magic)
- {
- Console.Write($"{x1}{x2}{x3}{x4}{x5}{x6} "); ;
- }
- }
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement