Advertisement
osman1997

visokosnigodini ot godina do godina

Sep 15th, 2020
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. using System;
  2.  
  3. class Program
  4. {
  5. static void Main()
  6. {
  7. int fromAYear = int.Parse(Console.ReadLine());
  8. int upToAYear = fromAYear - 50;
  9.  
  10.  
  11. for (int i = fromAYear; i >= upToAYear; i--)
  12. {
  13. if (DateTime.IsLeapYear(i))
  14. {
  15. Console.WriteLine(i);
  16. }
  17. }
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement