user-0 提问: 大一题输入1-99的数字，输出它的念法(汉字)输出，

回复:
user: user-1
content: 希望对你有帮助：https://blog.csdn.net/it_xiangqiang/category_10581430.html 希望对你有帮助：https://blog.csdn.net/it_xiangqiang/category_10768339.html

user: user-2
content: 引用 6 楼 qq_45839954的回复:[quote=引用 5 楼 qq_45836904 的回复：][quote=引用 4 楼 qq_45836904的回复:]#include<stdio.h>int main(void){    int a,b,num;    printf("请输入数值：");    scanf("%d",&num);    a=num/10;		b=num-a*10;		if(num>=1&&num<=99)		{ 			if(a>=1&&a<=9)				switch(a)				   {        case 0:printf("\n");break;        case 1: printf("yishi");break;        case 2: printf("ershi");break;        case 3: printf("sanshi");break;        case 4: printf("sishi");break;        case 5: printf("wushi");break;        case 6: printf("liushi");break;        case 7: printf("qishi");break;        case 8: printf("bashi");break;        case 9: printf("jiushi");break;			}			if(b>=1&&b<=9)				switch(b)			{        case 1: printf("yi\n");break;        case 2: printf("er\n");break;        case 3: printf("san\n");break;        case 4: printf("si\n");break;        case 5: printf("wu\n");break;        case 6: printf("liu\n");break;        case 7: printf("qi\n");break;        case 8: printf("ba\n");break;        case 9: printf("jiu\n");break;			}		}			 else            printf("输入错误！\n");			 return 0;} 。。格式我忘记调了你自己看一下！我觉得应该是这样[/quote]好的谢谢了[/quote] 结一下帖子鸭亲！！！！！

user: user-3
content: 作业？自己看书吧！ 只提示一个1-99的中文读法，大致可以分为3中情况 1-10 YI,ER,SAN, ... SHI 11-19 SHI YI, SHI ER, ... 21-99 ER SHI YI, ..., JIU SHI JIU

user: user-0
content: 有没有大哥帮帮忙

user: user-0
content: 引用 5 楼 qq_45836904 的回复：[quote=引用 4 楼 qq_45836904的回复:]#include<stdio.h>int main(void){    int a,b,num;    printf("请输入数值：");    scanf("%d",&num);    a=num/10;		b=num-a*10;		if(num>=1&&num<=99)		{ 			if(a>=1&&a<=9)				switch(a)				   {        case 0:printf("\n");break;        case 1: printf("yishi");break;        case 2: printf("ershi");break;        case 3: printf("sanshi");break;        case 4: printf("sishi");break;        case 5: printf("wushi");break;        case 6: printf("liushi");break;        case 7: printf("qishi");break;        case 8: printf("bashi");break;        case 9: printf("jiushi");break;			}			if(b>=1&&b<=9)				switch(b)			{        case 1: printf("yi\n");break;        case 2: printf("er\n");break;        case 3: printf("san\n");break;        case 4: printf("si\n");break;        case 5: printf("wu\n");break;        case 6: printf("liu\n");break;        case 7: printf("qi\n");break;        case 8: printf("ba\n");break;        case 9: printf("jiu\n");break;			}		}			 else            printf("输入错误！\n");			 return 0;} 。。格式我忘记调了你自己看一下！我觉得应该是这样[/quote]好的谢谢了🙏

user: user-2
content: 引用 4 楼 qq_45836904的回复:#include<stdio.h>int main(void){    int a,b,num;    printf("请输入数值：");    scanf("%d",&num);    a=num/10;		b=num-a*10;		if(num>=1&&num<=99)		{ 			if(a>=1&&a<=9)				switch(a)				   {        case 0:printf("\n");break;        case 1: printf("yishi");break;        case 2: printf("ershi");break;        case 3: printf("sanshi");break;        case 4: printf("sishi");break;        case 5: printf("wushi");break;        case 6: printf("liushi");break;        case 7: printf("qishi");break;        case 8: printf("bashi");break;        case 9: printf("jiushi");break;			}			if(b>=1&&b<=9)				switch(b)			{        case 1: printf("yi\n");break;        case 2: printf("er\n");break;        case 3: printf("san\n");break;        case 4: printf("si\n");break;        case 5: printf("wu\n");break;        case 6: printf("liu\n");break;        case 7: printf("qi\n");break;        case 8: printf("ba\n");break;        case 9: printf("jiu\n");break;			}		}			 else            printf("输入错误！\n");			 return 0;} 。。格式我忘记调了你自己看一下！我觉得应该是这样

user: user-2
content: #include<stdio.h>int main(void){    int a,b,num;    printf("请输入数值：");    scanf("%d",&num);    a=num/10;		b=num-a*10;		if(num>=1&&num<=99)		{ 			if(a>=1&&a<=9)				switch(a)				   {        case 0:printf("\n");break;        case 1: printf("yishi");break;        case 2: printf("ershi");break;        case 3: printf("sanshi");break;        case 4: printf("sishi");break;        case 5: printf("wushi");break;        case 6: printf("liushi");break;        case 7: printf("qishi");break;        case 8: printf("bashi");break;        case 9: printf("jiushi");break;			}			if(b>=1&&b<=9)				switch(b)			{        case 1: printf("yi\n");break;        case 2: printf("er\n");break;        case 3: printf("san\n");break;        case 4: printf("si\n");break;        case 5: printf("wu\n");break;        case 6: printf("liu\n");break;        case 7: printf("qi\n");break;        case 8: printf("ba\n");break;        case 9: printf("jiu\n");break;			}		}			 else            printf("输入错误！\n");			 return 0;}

user: user-2
content: 这能用while吗……？？？if吧