SonyaI

високосный год

Mar 29th, 2020
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.21 KB | None | 0 0
  1. print('Введите год')
  2. year = int(input())
  3. if year % 4 ==  0 and year % 100 != 0:
  4.     print('Високосный')
  5. elif year % 400 == 0: print('Високосный')
  6. else: print('Невисокосный')
Add Comment
Please, Sign In to add comment