printf("Enter the number of the season (1 for Winter, 2 for Spring, 3 for Summer, 4 for Autumn): "); scanf("%d", &season); switch(season) { case 1: printf("Winter (December, January, February)\n"); break; case 2: printf("Spring (March, April, May)\n"); break; case 3: printf("Summer (June, July, August)\n"); break; case 4: printf("Autumn (September, October, November)\n"); break; default: printf("Invalid season number\n"); } return 0;
int main() {
printf("Enter the number of the season (1 for Winter, 2 for Spring, 3 for Summer, 4 for Autumn): ");int season;
scanf("%d", &season);
switch(season) {
case 1:
printf("Winter (December, January, February)\n");
break;
case 2:
printf("Spring (March, April, May)\n");
break;
case 3:
printf("Summer (June, July, August)\n");
break;
case 4:
printf("Autumn (September, October, November)\n");
break;
default:
printf("Invalid season number\n");
}
return 0;
}