Advertisement
aggressiveviking

Untitled

Feb 13th, 2020
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.77 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _01.UniquePINCodes
  4. {
  5.     class UniquePINCodes
  6.     {
  7.         static void Main(string[] args)
  8.         {
  9.             int first = int.Parse(Console.ReadLine());
  10.             int second = int.Parse(Console.ReadLine());
  11.             int third = int.Parse(Console.ReadLine());
  12.  
  13.             for (int i = 2; i <= first; i += 2)
  14.             {
  15.                 for (int j = 2; j <= second; j++)
  16.                 {
  17.                     for (int k = 2; k <= third; k += 2)
  18.                     {
  19.                         if (j == 2 || j == 3 || j == 5 || j == 7)
  20.                         {
  21.                             Console.WriteLine(i + " " + j + " " + k);
  22.                         }
  23.                     }
  24.                 }
  25.             }
  26.         }
  27.     }
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement