Advertisement
ElviraPetkova

Unique_PIN_Codes

Dec 1st, 2018
435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.90 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace _6.Unique_PIN_Codes
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int firstNumber = int.Parse(Console.ReadLine());
  14.             int secondNumber = int.Parse(Console.ReadLine());
  15.             int thirdNumber = int.Parse(Console.ReadLine());
  16.  
  17.             for (int a = 2; a <= firstNumber; a+=2)
  18.             {
  19.                 for (int b = 2; b <= secondNumber; b+=1)
  20.                 {
  21.                     for (int c = 2; c <= thirdNumber; c+=2)
  22.                     {
  23.                         if (b == 2 || b == 3 || b == 5 || b == 7)
  24.                         {
  25.                             Console.WriteLine($"{a} {b} {c}");
  26.                         }
  27.                     }  
  28.                 }
  29.             }
  30.         }
  31.     }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement