#135: 203


s245 (王佑綱)

學校 : 不指定學校
編號 : 280
來源 : [118.163.232.198]
最後登入時間 :
2026-08-08 13:39:11
t013. 203 選擇敘述與迴圈 (相對應的英文單字) | From: [61.227.46.177] | 發表日期 : 2026-08-01 11:30

#include<bits/stdc++.h>
using namespace std;
int a;
int main()
{
    string str[4]={"one","two","three","four"};
    cin>>a;
    if(a<1 or a>4){
        cout<<"error"<<endl;
    }else{
         cout<<str[a-1]<<endl;
    }
    return 0;

}
 
ZeroJudge Forum