这部分语句有什么错误
case 1:printf("这是一个五位数\n");
ge=a%10;
wan=a/10000;
qi=(a-wan*10000)/1000;
bai=(a-qi*1000-wan*10000)/100;
sh=(a-wan*1000-qi*1000-bai*100)/10;
printf("这个数的个位是:%d\n十位是:%d\n百位是:%d\n千位是:%d\n万位是:%d\n",ge,sh,bai,qi,wan);
yi=ge*10000+sh*1000+bai*100+qi*10+wan;
printf("逆向输出为%ld\n",yi);
break;
人气:175 ℃ 时间:2020-03-22 12:16:15
解答
why don't you convert your integer to string,then substring,that will much much easier我看不懂英文
推荐
猜你喜欢