do..while
可不可以一个do,,,下面跟着几个While,例如
int num = 999;
int count = 0;
for(num=0;num<=999999999;num++){
do{
count=num/10;
}while(count==0);
System.out.println("它是个1位的数!");
while(count>0&&count<10);
System.out.println("它是个2位的数!");
while(count>10&&count<100);
System.out.println("它是个3位的数!");
while(count>100&&count<1000);
System.out.println("它是个4位的数!");
while(count>1000&&count<10000);
System.out.println("它是个5位的数!");
while(count>10000&&count<100000);
System.out.println("它是个6位的数!");
while(count>100000&&count<1000000);
System.out.println("它是个7位的数!");
while(count>1000000&&count<10000000);
System.out.println("它是个8位的数!");
while(count>10000000&&count<100000000);
System.out.println("它是个9位的数!");