課程
/后端開發(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);
建議把代碼都貼出來,你只給個結果怎么可能知道是哪里錯了。
細節(jié)吧。。
舉報
0基礎萌新入門第一課,從Java環(huán)境搭建、工具使用、基礎語法開始
3 回答答案都出來了
1 回答為什么我出來的答案是這個
1 回答答案答案答案
4 回答為什么這樣寫出來答案不對呀?
3 回答為什么A答案是錯的,求解答
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網(wǎng)安備11010802030151號
購課補貼聯(lián)系客服咨詢優(yōu)惠詳情
慕課網(wǎng)APP您的移動學習伙伴
掃描二維碼關注慕課網(wǎng)微信公眾號
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
建議把代碼都貼出來,你只給個結果怎么可能知道是哪里錯了。
2016-01-18
細節(jié)吧。。