這什么情況,能輸出結果啊,代碼沒有問題,為什么就是不讓過
public class HelloWorld{
public static void main(String[] args){
int num = 999;
int count = 0;
if(num>=0 && num<=999999999){
while(num!=0){
? ? ? ? count++;
? ? ? ? num = num/10;
? ? }
? ? System.out.println("它是個"+count+"位的數!");
}
}
}
2015-09-07
如果我說,是因為
System.out.println("它是個"+count+"位的數!");
把最后一個英文!改成中文!
中英文感嘆號都不放過,我也只能呵呵啦