请问哪里错了啊?
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
for(;num!=0,count<=10;count++){
num/=10;
}
System.out.println("它是个"+count+"位数");
}
}
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
for(;num!=0,count<=10;count++){
num/=10;
}
System.out.println("它是个"+count+"位数");
}
}
2020-10-11
举报