我这个是怎么回事啊?
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
for(int i=0; i<10;i++){
if(num/10>1){
count++;
}else{
System.out.println("它是个"+count+"位的数");
break;
}
}
}
}
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
for(int i=0; i<10;i++){
if(num/10>1){
count++;
}else{
System.out.println("它是个"+count+"位的数");
break;
}
}
}
}
2017-05-08
举报