Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- class Program
- {
- static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- for (int x1 = 0; x1 <= 9; x1++)
- {
- for (int x2 = 0; x2 <= 9; x2++)
- {
- for (int x3 = 0; x3 <= 9; x3++)
- {
- for (int x4 = 0; x4 <= 9; x4++)
- {
- for (int x5 = 0; x5 <= 9; x5++)
- {
- for (int x6 = 0; x6 <= 9; x6++)
- {
- if (x1 * x2 * x3 * x4 * x5 * x6 == n)
- {
- Console.Write("{0}{1}{2}{3}{4}{5} ", x1, x2, x3, x4, x5, x6);
- }
- }
- }
- }
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment