C program to print day of week name using switch case or Display Day Name according to the Day Number using Switch Case or C Program to Print Days of Week in Words using Switch Case Statement or Program in C to Display day of week using switch case or Days of week using switch case or C program to input number of week's day(1-7) and translate to its equivalent name of the day of the week or Simple C Program for Switch case to Find weekdays name or print Days of Week using switch-case or program to print days of week using switch.
Explanation:
In this problem, we have to find the day, let's take an input as an example suppose user enter 5(User input should be between 1 to 7 ) than out program will print the message on screen " Today Is Friday ", and for other input it will print the appropriate message on screen. If user think he is smart and he is trying to enter some other than values 1 to 7 then program will print the message " Don't be Smart Wrong Choice Try Again!!!". program will work only if values are 1 to 7.
Output:
Monday Willbe First Days and So On
Enter Any Number Between (1 to 7):5
Today is Friday
need an explanation for this answer? contact us directly to get an explanation for this answer