Question: 1 4. Please implement the program according to the requirements: Input month number from user. Store it in some variable say month. There can be

1 4. Please implement the program according to the requirements: Input month number from user. Store it in some variable say month. There can be 12 possible values (choices) of month i.e. from 1 to 12. Print 31 for the value of 1, 3, 5, 7, 8, 10, 12. Print 30 for he value of 4, 6, 9, 11. Print 28/29 for he value of 2. Print "invalid input" for the value out of the range of [1,12]. The execution of the program may look like the following: Please input a month number: 2 28/29 Process exited after 2.363 seconds with return value o
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
