看看哪錯了?
public class HelloWorld{
? ? public static void main(String[] args){
? ? ? ? int num = 999;
? ? ? ? int count = 1;
? ? ? ? for(;(num -Math.pow(10,count))>=0;count++)
? ? ? ? {
? ? ? ? }
? ? ? ? System.out.println("它是個"+count+"位的數(shù)!");
? ? }
}
2017-03-23
沒有問題,而且你的方法很新穎
2017-03-23
沒毛病啊,你的程序可以跑啊 而且我試了幾個數(shù) 答案沒問題