这样可以吗?
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
do{
num /=10;
do{
count++;
}while(num != 0);
}while(num >=0 && num <= 9999999999);
}
System.out.println();
}
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
do{
num /=10;
do{
count++;
}while(num != 0);
}while(num >=0 && num <= 9999999999);
}
System.out.println();
}
2017-03-08
举报