Programming Examples
Python program to check the given year is leap year or not
WAP to check the given year is leap year or not.
Solution
year=int(input("Enter year"))
if year%4==0:
if year%100==0:
if year%400==0:
print(year,"is a leap year")
else:
print(year,"is a not leap year")
else:
print(year,"is a leap year")
else:
print(year,"is a not leap year")
Output