多个 do 循环 优化问题
自己胡写一个小程序 ,请老鸟优化一下看看。#include<stdio.h>
int main ()
{
int a;
int c;
int b;
do{
do {
puts("请输入:");
scanf("%d",&c);
if (c<0)
puts("nonono");
}while (c<0);
do{
a=c%10;
c=c/10;
printf("%d",a);
}while (c>0);
puts("one more time ? 1 yes , 2 no");
scanf("%d",&b);
}while (b==1);
return 0;
}