Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace CarNumber
- {
- class Program
- {
- static void Main(string[] args)
- {
- int startNum = int.Parse(Console.ReadLine());
- int finalNum = int.Parse(Console.ReadLine());
- for (int i = startNum; i <= finalNum; i++)
- {
- for (int k = startNum; k <= finalNum; k++)
- {
- for (int j = startNum; j <= finalNum; j++)
- {
- for (int x = startNum; x <= finalNum; x++)
- {
- if ((i % 2 == 0 && x % 2 == 1 || i % 2 == 1 && x % 2 == 0)
- && i > x && (k + j) % 2 == 0)
- {
- Console.Write($"{ i}{ k}{ j}{ x} ");
- }
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement