Write a C++ program to input day number and print weekday by using the if-else statement.

Write a C++ program to input day number and print weekday by using the if-else statement.

Flowchart of the if-else program to input day number and print weekday

Flowchart of the if-else program to input day number and print weekday

C++ Source Code of the if-else program to input day number and show the weekday

Output

Enter the number of the day

6

Saturday

SFT (Shamil’s Flow Table )

Are you interested to Read about SFT(Shamil’s Flow Table)?

Explanation of if-else program to get the day number and show the weekday

Latest posts by Prof. Fazal Rehman Shamil (see all)

Buy advertisement space on T4Tutorials

For more details email [email protected]