Python Program to Check the Year is Leap or Not

Python Program to Check the Year is Leap or Not



 year=int(input("Enter year:"))

if year%4==0:

    print(f"{year} is leap year")

else:

    print(f"The {year} is not leap year")


Output:

Enter year:2008

2008 is leap year


टिप्पणी पोस्ट करा

0 टिप्पण्या