#includeint main(){ int a,b,c,abc; scanf("%d",&abc); printf("百位数为:%d\n",a=abc/100); printf("十位数为:%d\n",b=(abc-a*100)/10); printf("个位数为:%d\n",c=(abc-a*100-b*10)); return 0; }
本文共 236 字,大约阅读时间需要 1 分钟。
#includeint main(){ int a,b,c,abc; scanf("%d",&abc); printf("百位数为:%d\n",a=abc/100); printf("十位数为:%d\n",b=(abc-a*100)/10); printf("个位数为:%d\n",c=(abc-a*100-b*10)); return 0; }
转载于:https://blog.51cto.com/10740329/1700629