题解 | #四季#
四季
https://www.nowcoder.com/practice/eaf21203b61b4a689987fdc165d00dfc
#include <stdio.h> int main() { int year = 0; int month = 0; scanf("%4d%2d", &year, &month); if (month >= 3 && month <= 5) { printf("spring\n"); } else if (month >= 6 && month <= 8) { printf("summer\n"); } else if (month >= 9 && month <= 11) { printf("autumn\n"); } else { printf("winter\n"); } return 0; }
C语言基础 文章被收录于专栏
里面较为详细的介绍了c语言的相关用法和有关题目。