finished
This commit is contained in:
@@ -3,32 +3,32 @@
|
||||
int main(void) {
|
||||
int month;
|
||||
|
||||
printf("Input month: ");
|
||||
printf("月を入力してください: ");
|
||||
scanf("%d", &month);
|
||||
|
||||
switch (month) {
|
||||
case 12:
|
||||
case 1:
|
||||
case 2:
|
||||
puts("It is winter.");
|
||||
printf("%d月は冬です。\n", month);
|
||||
break;
|
||||
case 3:
|
||||
case 4:
|
||||
case 5:
|
||||
puts("It is spring.");
|
||||
printf("%d月は春です。\n", month);
|
||||
break;
|
||||
case 6:
|
||||
case 7:
|
||||
case 8:
|
||||
puts("It is summer.");
|
||||
printf("%d月は夏です。\n", month);
|
||||
break;
|
||||
case 9:
|
||||
case 10:
|
||||
case 11:
|
||||
puts("It is autumn.");
|
||||
printf("%d月は秋です。\n", month);
|
||||
break;
|
||||
default:
|
||||
puts("Unknown month.");
|
||||
puts("不明な月です。");
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user