根据题意得如下代码:
#include
int main()
{
int n;
scanf ("%d", &n);//输入字
if (n == 0){
printf ("zero\n");
}
枝埋森 else if (n == 1){//1
液携 printf ("one\n");
}
else if (n == 2){//2
printf ("two\n");
猛亩}
else if (n == 3){//3
printf ("three\n");
}
else if (n == 4){//4
printf ("four\n");
}
else if (n == 5){//5
printf ("five\n");
}
else {//其他
printf ("wrong\n");
}
return 0;
}
#include
int main( )
{int n;
scanf("%d",&n);
if(n==0)printf("zero\n");
好慧塌 else if(n==1)printf("one\n");
友圆 else if(n==2)printf("碧正two\n");
else if(n==3)printf("three\n");
else if(n==4)printf("four\n");
else if(n==5)printf("five\n");
else printf("out of range\n");
return 0;
}
#include
#include
int main()
{
int n;
scanf("%d",&n);
if(n==0)
printf("zero\n");
else if(n==1)
printf("one\n");
吵盯 else if(n==2)
printf("two\n");
else if(n==3)
printf("three\n");
升埋和 else if(n==4)
printf("four\n");
else if(n==5)
液枝 printf("five\n");
else
printf("wrong input\n");
return 0;
}