#include <stdio.h>
enum Season {Spring=3, Summer=6, Autumn=9, Winter=12};
int main() {
    int month;
    printf("输入月份（1-12）：");
    scanf("%d", &month);
    enum Season s;
    // 根据月份映射枚举值
    if (month>=3&&month<6) s=Spring;
    else if (month>=6&&month<9) s=Summer;
    else if (month>=9&&month<12) s=Autumn;
    else s=Winter;
    // 输出结果
    printf("对应季节：");
    switch(s) {
        case Spring: printf("春季（枚举值：%d）\n", s); break;
        case Summer: printf("夏季（枚举值：%d）\n", s); break;
        case Autumn: printf("秋季（枚举值：%d）\n", s); break;
        case Winter: printf("冬季（枚举值：%d）\n", s); break;
    }
    return 0;
}