是这样吗?
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
do{
num = num / 10;
count ++;
}while(num != 0);
System.out.println("count:" + count);
}
}
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
do{
num = num / 10;
count ++;
}while(num != 0);
System.out.println("count:" + count);
}
}
2021-02-03
举报