请问老师A/=10,或者说A/=X,当A<X的时候结果会是零是吗
public class HelloWorld{
public static void main(String[] args){
int num = 80;
int count = 0;
if (num >= 0 && num<=999999999){
while(num != 0){
count++;
num/=10;
}
System.out.println("它是个"+ count+"位的数!");
System.out.println(num/=10);
} else{
System.out.println("输入有误!");
}
}
}