运行错误,输出错误怎么回事?
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
for(;num==0;num=num / 10){
count++;
while(num==0){
System.out.print("它是一个"+count+"位的数!");
}
}
}
}
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
for(;num==0;num=num / 10){
count++;
while(num==0){
System.out.print("它是一个"+count+"位的数!");
}
}
}
}
2019-02-28
举报