题目描述
输入1~7中任意一个数字,输出对应的英文简写。
样例输入 Copy
1
样例输出 Copy
one
#include<bits/stdc++.h>
using namespace std;
string a[7]={"one","two","three","four","five","six","seven"};
int b;
int main()
{
cin>>b;
cout<<a[b-1];
return 0;
}
题目描述
输入1~7中任意一个数字,输出对应的英文简写。
样例输入 Copy
1
样例输出 Copy
one
#include<bits/stdc++.h>
using namespace std;
string a[7]={"one","two","three","four","five","six","seven"};
int b;
int main()
{
cin>>b;
cout<<a[b-1];
return 0;
}