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

11 lines
240 B
Python

cnt = 0
for i in range(1900, 2021):
if i % 100 == 0:
if i % 400 == 0:
print(i)
cnt += 1
elif i % 4 == 0:
print(i)
cnt += 1
print("Total number of leap years from 1900 to 2021: ", cnt)