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); } }
num=num/10
后面少了分号
System.out.println(i);
下面少了两个反括弧
谢谢!