* Write a program to display Sunday if 1 is inputted, Monday if 2 is inputted and so till Saturday
Answers
Answered by
1
Answer:
7is the answer.
Explanation:
any problems you can tell mi
Answered by
0
Answer:
print("Numbers of Days of the week")
d=int(input("Enter a number from 1 to 7"))
if (d==1):
print("Sunday")
elif (d==2):
print("Monday")
elif (d==3):
print("Tuesday")
elif (d==4):
print("Wednesday")
elif (d==5):
print("Thursday")
elif (d==6):
print("Friday")
elif (d==7):
print("Saturday")
else:
print("You've entered a wrong number,Pls enter a number from 1 to 7 only")
Similar questions