题解 | #判断季节#
判断季节
http://www.nowcoder.com/practice/741a9b79fabe474cb153a49b4bff5828
using namespace std;
int main() {
int month;
cin >> month;
if(month>=3&&month<=5){
printf("春季");
}
else if(month>=6&&month<=8){
printf("夏季");
}
else if(month>=9&&month<=11){
printf("秋季");
}
else if(month==1||month==2||month==12){
printf("冬季");
}
else{
printf("不合法");
}
// write your code here......
return 0;
}