Back To C++ Flow of Control Index
month is taken as input in number
if month is entered as 1 , month is displayed as january
if month is entered as 2 , month is displayed as february
if month is entered as 3 , month is displayed as march
if month is entered as 4 , month is displayed as april
if month is entered as 5 , month is displayed as may
if month is entered as 6 , month is displayed as june
if month is entered as 7 , month is displayed as july
if month is entered as 8 , month is displayed as august
if month is entered as 9 , month is displayed as september
if month is entered as 10 , month is displayed as october
if month is entered as 11 , month is displayed as november
if month is entered as 12 , month is displayed as december
if month is entered as 7 , month is displayed as sunmonth
if month is entered other than 1,2,3,4,,5,6,7,8,9,10,11,12 , message is displayed as enter a month between 1 and 12