Advertisement
Guest User

lqlq

a guest
Jul 17th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 1.13 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 Pin_code_Просто_число
  8. {
  9.     class Program
  10.     {
  11.         static void Main(string[] args)
  12.         {
  13.             int upperFirst = int.Parse(Console.ReadLine());
  14.             int upperSecond = int.Parse(Console.ReadLine());
  15.             int upperThird = int.Parse(Console.ReadLine());
  16.  
  17.  
  18.             for (int i = 1; i <= upperFirst; i++)
  19.             {
  20.                 if (i % 2 == 0)
  21.                 {
  22.                     for (int k = 2; k <= upperSecond; k++)
  23.                     {
  24.                         if (k == 2 || k == 3 || k == 5 || k == 7)
  25.                         {
  26.                             for (int l = 1; l <= upperThird; l++)
  27.                             {
  28.                                 if (l % 2 == 0)
  29.                                 {
  30.  
  31.                                     Console.WriteLine($"{i} {k} {l}");
  32.                                 }
  33.                             }
  34.                         }
  35.                     }
  36.                 }
  37.             }
  38.         }
  39.     }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement