/*
Lauren Dukes
CPSC 1110 Example

Example switch statement with layered cases.
Given a month, tell what season it is.

*/

#include <stdio.h>

int main(void){
	int month;
	printf("What month is it? ");
	scanf("%d",&month);

	switch(month){
		case 12:
		case 1:
		case 2:
			printf("It's winter.\n");
			break;
		case 3:
		case 4:
		case 5:
			printf("It's spring.\n");
			break;
		case 6:
		case 7:
		case 8:
			printf("It's summer.\n");
			break;
		case 9:
		case 10:
		case 11:
			printf("It's fall.\n");
			break;
		default:
			printf("Valid months are 1 through 12.\n");
	}

	return 0;
}
