year = int(input("Enter Year = "))
print('-'*20)
if (year % 400 == 0):
print(str(year) + " is a leap year.")
elif (year % 100 == 0):
print(str(year) + " isn't a leap year.")
elif(year % 4 == 0):
print(str(year)+ " is a leap year.")
else:
print(str(year) + " isn't a leap year.")
print('-'*20)
if (year % 400 == 0):
print(str(year) + " is a leap year.")
elif (year % 100 == 0):
print(str(year) + " isn't a leap year.")
elif(year % 4 == 0):
print(str(year)+ " is a leap year.")
else:
print(str(year) + " isn't a leap year.")
No comments:
Post a Comment