Question: Write a function called convertMonthToWord. The function has an integer parameter representing the month number ( 1 - 1 2 ) . Use a switch
Write a function called convertMonthToWord. The function has an integer parameter representing the month number Use a switch statement to test the parameter. If the number is a valid month then print the month as a word. For example, the value would print February. You can print the month in any language you like. If the value is invalid greater than less than print a message that the number is invalid. Call your function from main at least times with different input
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
