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 SpecialNumbers1
- {
- class Program
- {
- static void Main(string[] args)
- {
- int n = int.Parse(Console.ReadLine());
- for (int num1 = 1111; num1 < 9999; num1++)
- {
- for (int num2 = 1111; num2 < 9999; num2++)
- {
- for (int num3 = 1111; num3 < 9999; num3++)
- {
- for (int num4 =1111; num4 < 9999; num4++)
- {
- if(n % num1==0 && n%num2==0 && n%num3==0 && n%num4==0)
- {
- Console.Write("{0}{1}{2}{3}", num1, num2, num3, num4);
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement