Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _05.SpecialNumbers
- {
- internal class Program
- {
- static void Main(string[] args)
- {
- int number = 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 l = 1; l <= 9; l++)
- {
- if (number % i == 0 && number % j == 0 && number % k == 0 && number % l == 0)
- {
- Console.Write($"{i}{j}{k}{l} ");
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement