repl.it
Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
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!")