这个哪里错了啊
package class6;
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
for(num=num/10;num!=0;count++)
if(num==0){
break;
}
System.out.println(count);
}
}
package class6;
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
for(num=num/10;num!=0;count++)
if(num==0){
break;
}
System.out.println(count);
}
}
2017-01-30
举报