spasnikolov131

Untitled

Feb 20th, 2024
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. using System;
  2.  
  3. namespace Unique_PIN_Codes
  4. {
  5. internal class Program
  6. {
  7. static void Main(string[] args)
  8. {
  9. int startFourDigitNumber = int.Parse(Console.ReadLine());
  10. int endFourDigitNumber = int.Parse(Console.ReadLine());
  11.  
  12. for (int i = startFourDigitNumber; i < endFourDigitNumber; i++)
  13. {
  14. if (i / 1000 % 2 != 0)
  15. {
  16. if (i / 100 % 2 != 0)
  17. {
  18. if (i / 10 % 2 != 0)
  19. {
  20. if (i % 10 % 2 != 0)
  21. {
  22. Console.Write($"{i} ");
  23.  
  24. }
  25. }
  26.  
  27. }
  28.  
  29. }
  30. }
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment