Question: Declare an integer variable called month and take input the value of month variable between 1 and 12. Using a switch statement, write a C++
Declare an integer variable called "month" and take input the value of month variable between 1 and 12. Using a "switch" statement, write a C++ program to print the name of the month corresponding to the value of "month". If "month" is not between 1 and 12, print the message "Invalid month". Print the result.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
