#include <stdio.h>
int main() {
int num;
printf("월: ");
scanf("%d", &num);
switch(num)
{
case 3:
case 4:
case 5:
printf("%d월: 봄\n",num);
break;
case 6:
case 7:
case 8:
printf("%d월: 여름\n",num);
break;
case 9:
case 10:
case 11:
printf("%d월: 가을\n",num);
break;
case 12:
case 1:
case 2:
printf("%d월: 겨울\n",num);
break;
default:
printf("1에서 12 사이의 숫자 입력\n");
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: