Write a complete program to do the following Read in a numbe
Solution
//Algorithm
1. Input the number of month in the integer number.
2. Compare the number with digit 1-12.
3. if matches with anyone
4. display the respective month the switch case.
5. else if not matches with single case
6. Display illegal moth.
7. Exit.
// Source Code
#include<stdio.h>
 void main()
 {
         int month;
         printf(\"Enter the month\ \");
         scanf(\"%d\",&month);
         switch(month)
         {
                 case 1:
                         printf(\"January\ \");
                         break;
                 case 2:
                         printf(\"Feburay\ \");
                         break;
                 case 3:
                         printf(\"March\ \");
                         break;
                 case 4:
                        printf(\"April\ \");
                         break;
                 case 5:
                         printf(\"May\ \");
                         break;
                 case 6:
                         printf(\"June\ \");
                         break;
                 case 7:
                         printf(\"July\ \");
                         break;
                 case 8:
                         printf(\"August\ \");
                         break;
                 case 9:
                         printf(\"September\ \");
                         break;
                 case 10:
                        printf(\"October\ \");
                         break;
                 case 11:
                         printf(\"Novemeber\ \");
                         break;
                 case 12:
                         printf(\"December\ \");
                         break;    
                 default:
                         printf(\"illegal month number\ \");
         }     
 }


