Computer Science, asked by yp1232, 1 year ago

Write a python program to find weather entered year is leap or not

Answers

Answered by sachin1234asdf
4

Answer:

# To find weather the year is leap or not.

a=1

while a==1:

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

  if (year % 4) == 0:

     if (year % 100) == 0:

        if (year % 400) == 0:

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

        else:

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

     else:

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

  else:

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

  input(">PRESS ENTER TO SEARCH AGAIN.")

   

Answered by sagar2002927
0

leaf year program to weather

Similar questions