c语⾔编程两位数变成英语,C语⾔编程要求⽤户输⼊两位数显
⽰英⽂单词
满意答案
neuqqxl
2017.10.19
采纳率:42%    等级:8
已帮助:112⼈
int main()
{
using namespace std;
cout <
int num;
cin >> num;
if (num > 99 || num
cout <
else
{
cout <
int a, b;
int flag = 0;
a = num / 10;
b = num % 10;
switch (a)
{
case 9:cout <
case 8:cout <
case 7:cout <
case 6:cout <
case 5:cout <
case 4:cout <
case 3:cout <
case 2:cout <
case 1:flag = 1; break;
}
if (flag == 0) switch (b)
{
编程英语要求高吗case 9:cout < case 8:cout < case 7:cout < case 6:cout < case 5:cout < case 4:cout < case 3:cout < case 2:cout < case 1:cout < }
else
switch (b)
{
case 9:cout < case 8:cout < case 7:cout < case 6:cout < case 5:cout < case 4:cout < case 3:cout < case 2:cout < case 1:cout < }
}
return 0;
}
00分享举报

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。