Zebra0.com

cpp ifelsePrint season based on month

Print season based on month

In this example, we print the month based on the month. Notice that we must use nested elses in order for the last else to work. If there were just one else, it would print out invalid if it wasn't fall.