#40402: c++ answer


1121226@stu.wghs.tp.edu.tw (Arthur1121226)

學校 : 臺北市私立薇閣高級中學
編號 : 252772
來源 : [60.248.154.139]
最後登入時間 :
2024-11-04 13:24:52
h291. 月份名稱 | From: [60.248.154.139] | 發表日期 : 2024-05-17 13:05

#include <iostream>
using namespace std;
int main() {
  int n;
  cin>>n;
  switch (n){
    case 1:
      cout<<"January";
      break;
    case 2:
      cout<<"February";
      break;
    case 3:
      cout<<"March";
      break;
    case 4:
      cout<<"April";
      break;
    case 5:
      cout<<"May";
      break;
    case 6:
      cout<<"June";
      break;
    case 7:
      cout<<"July";
      break;
    case 8:
      cout<<"August";
      break;
    case 9:
      cout<<"September";
      break;
    case 10:
      cout<<"October";
      break;
    case 11:
      cout<<"November";
      break;
    case 12:
      cout<<"December";
      break;
    }
  return 0;
  
}

 
ZeroJudge Forum