Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2020
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 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 pinCode_nested_more_
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. int firstNum = int.Parse(Console.ReadLine());
  14. int secondNum = int.Parse(Console.ReadLine());
  15. int thirdNum = int.Parse(Console.ReadLine());
  16.  
  17. for (int x1 = 1; x1 <= firstNum; x1++)
  18. {
  19. if (x1 % 2 != 0)
  20. {
  21. continue;
  22. }
  23.  
  24. for (int x2 = 2; x2 <= secondNum; x2++)
  25. {
  26.  
  27. if (x2 % 2 == 0 && x2!=2)
  28. {
  29. continue;
  30. }
  31.  
  32. for (int x3 = 1; x3 <= thirdNum; x3++)
  33. {
  34. if (x3 % 2 != 0)
  35. {
  36. continue;
  37. }
  38.  
  39. Console.WriteLine($"{x1} {x2} {x3}");
  40. }
  41. }
  42. }
  43.  
  44. }
  45. }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement