Computer Science, asked by agarwalsuhani819, 2 months ago


* Write a program to display Sunday if 1 is inputted, Monday if 2 is inputted and so till Saturday

Answers

Answered by nk8287711813
1

Answer:

7is the answer.

Explanation:

any problems you can tell mi

Answered by jayasmita08
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