Program in C++ to display the name of the day in a week

Program in C++ to display the name of the day in a week, depending upon the number entered through the keyboard.

The program will accept integer value between 1 and 7. Depending on the number entered, the program will display the name of the day as follows:
1 => “Monday”
2 => “Tuesday”
3 => “Wednesday”
4 => “Thursday”
5 => “Friday”
6 => “Saturday”
7 => “Sunday”

Output:

Note: The above program is written and tested using Microsoft Visual Studio 2008

You may also like...

1 Response

  1. sam says:

    thnx bro!!!!!

Leave a Reply

Your email address will not be published. Required fields are marked *