Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace exam
- {
- class Program
- {
- static void Main(string[] args)
- {
- int firstNumber = int.Parse(Console.ReadLine());
- int secondNumber = int.Parse(Console.ReadLine());
- int thirdNumber = int.Parse(Console.ReadLine());
- for (int x1 = 1; x1 <= firstNumber; x1++)
- {
- for (int x2 = 2; x2 <= secondNumber; x2++)
- {
- for (int x3 = 1; x3 <= thirdNumber; x3++)
- {
- if (x1 % 2 == 0 && x3 % 2 == 0)
- {
- if (x2 > 2 && x2 % 2 == 0)
- {
- continue;
- }
- else if (x2 >7)
- {
- continue;
- }
- Console.WriteLine($"{x1} {x2} {x3}");
- }
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement