这个为什么不对
public class HelloWorld{
public static void main(String[] args){
double num = 999;
int i = 0;
for(;num>1;i++){
num=num/10
}
System.out.println(i);
public class HelloWorld{
public static void main(String[] args){
double num = 999;
int i = 0;
for(;num>1;i++){
num=num/10
}
System.out.println(i);
2015-10-31
举报