C Program To Print Day of Week Name Using Switch Case

Problem:- 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.

Check This:- Hacker rank solution for Strings, Classes, STL, Inheritance in C++.

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.

Also Check:- Geeksforgeeks solution for School, Basic, Easy, Medium, Hard in C++.

Extreme Recommended:- Like our Facebook Page or Join our Facebook Group and Google plus Community for up-to-date for a new post or if you have any Query you can ask there with lots of coders also suggest to your Friends to join and like our page, so we can help our community, and don't forget to Subscribe. Enter your Email and click to subscribe.



 /*Visit - www.programmingwithbasis.com*/
int choice;

printf("Monday Willbe First Days and So On\n\n");
printf("Enter Any Number Between (1 to 7):");
case  1:
printf("Today is Monday");
case  2:
printf("Today is Tuesday");
case  3:
printf("Today is Wednesday");
case  4:
printf("Today is Thursday");
case  5:
printf("Today is Friday");
case  6:
printf("Today is Saturday");
case  7:
printf("Today is Sunday");
printf("Don't Be Smart....Wrong Choice Try Again!!!");

C Program To Print Day of Week Name Using Switch Case

You May Also See

1. C Program To Find Area And Circumference Of Circle

2. C Program To Print ASCII Value Of Character

3. C Program To Find Area Of Triangle 

Previous Post
Next Post

post written by:

Hi, I’m Ghanendra Yadav, SEO Expert, Professional Blogger, Programmer, and UI Developer. Get a Solution of More Than 500+ Programming Problems, and Practice All Programs in C, C++, and Java Languages. Get a Competitive Website Solution also Ie. Hackerrank Solutions and Geeksforgeeks Solutions. If You Are Interested to Learn a C Programming Language and You Don't Have Experience in Any Programming, You Should Start with a C Programming Language, Read: List of Format Specifiers in C.
Follow Me