Header Ads

Python programs coding series - Leap Year




Find whether an year is a leap year or not


#Check whether the year is leap year or not

x = int(input("Enter an Year:"))

if x % 4 == 0:
    print (str(x)+" is a Leap Year")
else:
    print(str(x) + " is not a Leap Year")


Output

No comments

Theme images by sebastian-julian. Powered by Blogger.