题解 | #四季#
四季
https://www.nowcoder.com/practice/eaf21203b61b4a689987fdc165d00dfc
#include <stdio.h>
int main()
{
int month = 0;
int year = 0;
scanf("%4d%2d", &year, &month);
switch (month)
{
case 1:
case 2:
case 12:
{
printf("winter");
break;
}
case 3:
case 4:
case 5:
{
printf("spring");
break;
}
case 6:
case 7:
case 8:
{
printf("summer");
break;
}
case 9:
case 10:
case 11:
{
printf("autumn");
break;
}
}
return 0;
}
