Skip to content

Commit 49a3169

Browse files
authored
Add files via upload
1 parent b7ef5c3 commit 49a3169

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

Leap year.py

+18
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
ans = 'y'
2+
3+
while ans.lower() == 'y':
4+
print("\t\t\t\tMENU\n")
5+
6+
year = int(input("Enter the year: "))
7+
8+
if (year % 4 == 0) and (year % 100 == 0):
9+
print("\nThe year entered is a: CENTENNIAL YEAR")
10+
11+
elif (year % 4 == 0):
12+
print("\nThe year entered is a: LEAP YEAR")
13+
14+
else:
15+
print("\nThe year entered is: NOT A LEAP YEAR")
16+
17+
ans = input("\nDo you wish to continue?(Y/n): ")
18+
print("\n")

0 commit comments

Comments
 (0)