Write a program to input a year. Check and display whether the year is leap year or not. python question enter output too
Answers
Answered by
0
Answer:
The program output is also shown below. year=int(input("Enter year to be checked:")) if(year%4==0 and year%100!= 0 or year%400==0): print("The year is a leap year!) else: print("The year isn't a leap year!)
Similar questions
Hindi,
10 days ago
Psychology,
10 days ago
Physics,
10 days ago
Computer Science,
20 days ago
Math,
20 days ago
Science,
9 months ago