第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

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

求指導(dǎo)!錯誤是什么

http://img1.sycdn.imooc.com//59d5020200013a8913660624.jpg

新人不太懂提問怎么用。

我沒有看懂錯誤信息中說的“<”未聲明是什么意思,還有其他的錯誤信息也沒懂。

求指教!

public?class?HelloWorld{
public?static?void?main(String[]?args){
int?num?=?999;
int?count?=?0;
int?i=1;
for(count=1,count<10,count++){
????if(num/i=0){
????????System.out.pringln(count);
????????break;
????}
????i*=10;
}
}
}


正在回答

3 回答

第八行println寫成了pringln

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

domandyyy 提問者

非常感謝
2017-10-05 回復(fù) 有任何疑惑可以回復(fù)我~

真的非常感謝!明明這么明顯的問題我都沒發(fā)現(xiàn),我真是太粗心了,謝謝指導(dǎo)

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

剛剛沒看仔細,錯誤很多,我給你改了一下,除了一些語法,還有你的輸出格式也是錯的


public class HelloWorld{

public static void main(String[] args){

int num = 999;

int count = 0;

int i=1;

for(count=1;count<10;count++){

? ? if(num/i==0){

? ? ? ? System.out.println("它是個"+ (count-1)+"位的數(shù)!");

? ? ? ? break;

? ? }

? ? i*=10;

}

}

}


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

舉報

0/150
提交
取消

求指導(dǎo)!錯誤是什么

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

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

幫助反饋 APP下載

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

公眾號

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