課程
/后端開發(fā)
/Java
/Java入門第一季(IDEA工具)
為什么算出來的答案與他給的答案不一樣···本來按他的答案是理解的,但在eclipse算的答案現(xiàn)在又不懂了
eclipse 答案是30/50/30/3000/30/0
2016-01-18
源自:Java入門第一季(IDEA工具) 3-3
正在回答
你肯定是最后輸出的;
這樣輸
int one = 10 ;
? ? ? ? int two = 20 ;
? ? ? ? int three = 0 ;
? ? ? ? three=one+two;
? ? ?System.out.println("three=one+two==>"+three);
? ? ? ? three+=one;
? ? ? ? ?System.out.println("three+=0ne==>"+three);
? ? ? ? three-=one;
? ? ? ? ?System.out.println("three-=one==>"+three);
? ? ? ? three*=one;
? ? ? ? ?System.out.println("three*=ono==>"+three);
? ? ? ? three/=one;
? ? ? ? ?System.out.println("three/=ono==>"+three);
? ? ? ? three%=one;
? ? ? ? System.out.println("three%=ono==>"+three);
建議把代碼都貼出來,你只給個(gè)結(jié)果怎么可能知道是哪里錯(cuò)了。
細(xì)節(jié)吧。。
舉報(bào)
0基礎(chǔ)萌新入門第一課,從Java環(huán)境搭建、工具使用、基礎(chǔ)語法開始
3 回答答案都出來了
1 回答答案答案答案
1 回答為什么我出來的答案是這個(gè)
4 回答為什么這樣寫出來答案不對(duì)呀?
3 回答為什么A答案是錯(cuò)的,求解答
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號(hào)-11 京公網(wǎng)安備11010802030151號(hào)
購課補(bǔ)貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動(dòng)學(xué)習(xí)伙伴
掃描二維碼關(guān)注慕課網(wǎng)微信公眾號(hào)
2016-01-19
你肯定是最后輸出的;
這樣輸
int one = 10 ;
? ? ? ? int two = 20 ;
? ? ? ? int three = 0 ;
? ? ? ? three=one+two;
? ? ?System.out.println("three=one+two==>"+three);
? ? ? ? three+=one;
? ? ? ? ?System.out.println("three+=0ne==>"+three);
? ? ? ? three-=one;
? ? ? ? ?System.out.println("three-=one==>"+three);
? ? ? ? three*=one;
? ? ? ? ?System.out.println("three*=ono==>"+three);
? ? ? ? three/=one;
? ? ? ? ?System.out.println("three/=ono==>"+three);
? ? ? ? three%=one;
? ? ? ? System.out.println("three%=ono==>"+three);
2016-01-19
建議把代碼都貼出來,你只給個(gè)結(jié)果怎么可能知道是哪里錯(cuò)了。
2016-01-18
細(xì)節(jié)吧。。