Write a python program to find whether a given year is a leap year or not.


                               Write a python program to determine whether a person is eligible to vote.

 Write a python program to find whether a given year is a leap year or not.

PROGRAM:

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

if (a%4==0 and a%100 !=0 or a%400==0):

    print(a," is a leap year.")

else:

    print(a," is not a leap year.")

OUTPUT:

No comments:

Post a Comment




Copyright Ⓒ 2022 | Mechpedia | All Right Reserved.