How To Print Number Of Days In A Month
#PRINT NUMBER OF DAYS IN A MONTH
print('NUMBER OF DAYS IN A MONTH ')
n=int(input('Enter Month Number = '))
if(n<1 or n>12):
print('ERROR')
elif(n==2):
print('Number of Days in the Month = ',28)
elif(n==4 or n==6 or n==9 or n==11):
print('Number of Days in the Month = ',30)
else:
print('Number of Days in the Month = ',31)
Made By:-
Nilay Saraf
Comments
Post a Comment