Try writing a program to enter the month and then determine the season to which it belongs. (March to May is spring, June to August is summer, September to November is autumn, and December to February is winter.)
試撰寫一程式,可輸入月份,然後判斷其所屬的季節(3~5月為春季,6~8月為夏季,9~11月為秋季,12~2月為冬季)。
Input a positive integer n (0 < n < 10) to the first row, which means the number of testing data is n.
Each testing data is the input month.
第一列輸入一個正整數 n (0 < n < 10),代表有 n筆測資。
每筆測資為輸入月份
The output is the season of the input month, where Spring is from March to May, Summer is from June to August, Autumn is from September to November, and Winter is from December to February. Please note that there must be a newline character at the end of the output.
輸出該月份的季節,3~5月為春季(Spring),6~8月為夏季(Summer),9~11月為秋季(Autumn),12~2月為冬季(Winter)。最後必須有換行字元。
2 3 10
Spring Autumn
編號 | 身分 | 題目 | 主題 | 人氣 | 發表日期 |
沒有發現任何「解題報告」 |