为啥总是运行成功输出错误?试了一下都能成功数出多少位数呢?
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count=0;
int j=1;
for(count=0;count<=10;count++){
if(num>=j){
j=j*10;
continue;
}
else{
System.out.println("它是个"+ count +"位数");
break;
}
}