This repository has been archived on 2025-12-15. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
2024-09-20 14:17:13 +03:00

13 lines
278 B
Python

def leapYears(x,y):
count = 0
for i in range(x,y+1):
if i%4 == 0 and i%100 !=0 or i%400 == 0:
print (i)
count = count + 1
return count
#main program
x = int(input("Start year:"))
y = int(input("End year:"))
print(leapYears(x,y))