---
# System prepended metadata

title: 季節判斷

---

# 季節判斷
https://neoj.sprout.tw/problem/208/
### 問題敘述
1-3月是春天，4-6月是夏天，7-9月是秋天，10-12月是冬天。

現在輸入一個整數(1-12)，代表月份，請你判斷此月屬於春夏秋冬哪個季節。

### 輸入說明
一個整數，代表月份
### 輸出說明
判斷輸入的月份屬於哪個季節(輸出為英文:spring/summer/fall/winter；記得換行)
#### 輸入範例#1
```
5
```
#### 輸出範例#1
```
summer
```
#### 輸入範例#2
```
12
```
#### 輸出範例#2
```
winter
```

# Code
```cpp
#include <iostream>

using namespace std;

int main(){
  int season;
  cin >> season;
    
  if ((season >= 1) && (season <= 3))
    cout<<"spring\n";
  else if ((season >= 4) && (season <= 6))
    cout<<"summer\n";
  else if ((season >= 7) && (season <= 9))
    cout<<"fall\n";	
  else if ((season >= 10) && (season <= 12))
    cout<<"winter\n";
} 
```