亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

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

為什么輸出結果和題目中的不一樣。大神幫我看看呀!

public class jingjing {

public static void main(String[] ages) {

int one=10; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?

int two=20;

int three=0;

int QQ=three=one+two; ????????? ?//20+10=30

int WW=three+one; ???????????????? //30+10=40

int EE=three-=one; ???????????????? //40-10=30 ? ? 注釋部分是自己口算結果

int RR=three*=one;???????????????? //30*10=300

int TT=three/=one;???????????????? //300/10=30

int YY=three%=one;???????????????? //30%10=0

System.out.println("three=one+two==>"+QQ);

System.out.println("three+=one==>"+WW);

System.out.println("three-=one==>"+EE);

System.out.println("three*=one=>"+RR);

System.out.println("three/=one==>"+TT);

System.out.println("three%=one=>"+YY);

}

}

? 輸出結果如下;

three=one+two==>30

three+=one==>40

three-=one==>20

three*=one=>200

three/=one==>20

three%=one=>0


正在回答

1 回答

不知道為啥發不了文字?截圖了

https://img1.sycdn.imooc.com//5cd2a9ef00015e0e07190351.jpg

0 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

為什么輸出結果和題目中的不一樣。大神幫我看看呀!

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號