Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _06._Unique_PIN_Codes
- {
- class Program
- {
- static void Main(string[] args)
- {
- int first = int.Parse(Console.ReadLine());
- int second = int.Parse(Console.ReadLine());
- int third = int.Parse(Console.ReadLine());
- for (int i = 1; i <= first; i++)
- {
- if (i % 2 != 0)
- {
- continue;
- }
- for (int j = 2; j <= second; j++)
- {
- //проверка за просто число
- for (int k = 1; k <= third; k++)
- {
- if (k % 2 != 0)
- {
- continue;
- }
- Console.WriteLine($"{i} {j} {k}");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement