write a program to display name of day of week using switch case
Answers
Answered by
1
Answer:
Logic to print day of week name using switch... case
Input day number from user. ...
Switch the value of week i.e. use switch(week) and match with cases.
There can be 7 possible values(choices) of week i.e. 1 to 7 . ...
For case 1: print "MONDAY", for case 2: print "TUESDAY" and so on.
I hope it may help you ⏳
Plz mark as brainliest.....
Answered by
29
Explanation:
Logic to print day of week name using switch. case
Input day number from user.
Switch the value of week i.e. use switch(week) and match with cases.
There can be 7 possible values(choices) of week i.e. 1 to 7 .
For case 1: print "MONDAY", for case 2: print "TUESDAY" and so on.
Similar questions