X997: Identifying Months in C++

Given an integer month_number, complete the function using a switch statement so that the string month_name is assigned the name of the month in all lowercase (e.g. "january") that corresponds with the order of the month. When month_number is not between 1-12, month_name should be assigned the value "invalid" instead.

Your Answer:

Reset

Practice a different C++ exercise

Feedback

Your feedback will appear here when you check your answer.