這什么情況,能輸出結(jié)果啊,代碼沒(méi)有問(wèn)題,為什么就是不讓過(guò)
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("它是個(gè)"+count+"位的數(shù)!");
}
}
}
2015-09-07
如果我說(shuō),是因?yàn)?/p>
System.out.println("它是個(gè)"+count+"位的數(shù)!");
把最后一個(gè)英文!改成中文!
中英文感嘆號(hào)都不放過(guò),我也只能呵呵啦