Advertisement
Guest User

Untitled

a guest
Feb 29th, 2020
195
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. using System;
  2.  
  3. namespace _06._Unique_PIN_Codes
  4. {
  5. class Program
  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.  
  14. for (int i = 1; i <= first; i++)
  15. {
  16. if (i % 2 != 0)
  17. {
  18. continue;
  19. }
  20. for (int j = 2; j <= second; j++)
  21. {
  22. //проверка за просто число
  23. for (int k = 1; k <= third; k++)
  24. {
  25. if (k % 2 != 0)
  26. {
  27. continue;
  28. }
  29. Console.WriteLine($"{i} {j} {k}");
  30. }
  31. }
  32. }
  33. }
  34. }
  35. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement