最近中文字幕高清中文字幕无,亚洲欧美高清一区二区三区,一本色道无码道dvd在线观看 ,一个人看的www免费高清中文字幕

為了賬號安全,請及時綁定郵箱和手機(jī)立即綁定

為什么運(yùn)行成功輸出錯誤

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/=10;

? ? }

? ? System.out.println("他是個"+count+"位的數(shù)");

}else{

? ? System.out.println("999");

????????}

????}

}


正在回答

4 回答

你的輸出里面沒有"!"號

0 回復(fù) 有任何疑惑可以回復(fù)我~

System.out.println("他是個"+count+"位的數(shù)");改成System.out.println("它是個"+count+"位的數(shù)!");就好了。

1 回復(fù) 有任何疑惑可以回復(fù)我~

public class Test {

public static void main(String[] args){

int num = 999;

int count = 0;

int a = num;

while(a > 10){

count+=count;

count++;

num/=10;

a = num;

}

System.out.println("它是個"+count+"個位數(shù)");

}

}


0 回復(fù) 有任何疑惑可以回復(fù)我~

輸出的文字錯了? 應(yīng)該是它是個 少了感嘆號要中文的

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報

0/150
提交
取消

為什么運(yùn)行成功輸出錯誤

我要回答 關(guān)注問題
微信客服

購課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學(xué)習(xí)伙伴

公眾號

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號