Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace Loops
- {
- class Program
- {
- static void Main(string[] args)
- {
- int start = int.Parse(Console.ReadLine());
- int end = int.Parse(Console.ReadLine());
- if (start > end)
- {
- int temp = start;
- start = end;
- end = temp;
- }
- for (int a = start; a <= end; a++)
- {
- for (int b = start; b <= end; b++)
- {
- for (int c = start; c <= end; c++)
- {
- for (int d = start; d <= end; d++)
- {
- if (d % 2 == 0)
- {
- Console.Write($"{a}{b}{c}{d} ");
- }
- }
- }
- }
- }
- Console.WriteLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement