Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- namespace _01.UniquePINCodes
- {
- class UniquePINCodes
- {
- 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 = 2; i <= first; i += 2)
- {
- for (int j = 2; j <= second; j++)
- {
- for (int k = 2; k <= third; k += 2)
- {
- if (j == 2 || j == 3 || j == 5 || j == 7)
- {
- Console.WriteLine(i + " " + j + " " + k);
- }
- }
- }
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment