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