Write a python program to find weather entered year is leap or not
Answers
Answered by
4
Answer:
# To find weather the year is leap or not.
a=1
while a==1:
year = int(input("Enter the year: "))
if (year % 4) == 0:
if (year % 100) == 0:
if (year % 400) == 0:
print(year,"is a leap year.")
else:
print(year,"is not a leap year.")
else:
print(year,"is a leap year.")
else:
print(year,"is not a leap year.")
input(">PRESS ENTER TO SEARCH AGAIN.")
Answered by
0
leaf year program to weather
Similar questions