Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- public class Program
- {
- public static void Main()
- {
- int n = int.Parse(Console.ReadLine());
- for(int i = 1; i <= 9; i ++)
- {
- for(int j = 1; j <= 9; j ++)
- {
- for(int k = 1; k <= 9; k ++)
- {
- for(int m = 1; m <= 9; m ++)
- {
- if (n % i == 0 && n % j == 0 && n % k == 0 && n % m == 0)
- {
- Console.Write("{0}{1}{2}{3}" + " ", i, j, k, m);
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement