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