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

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

運算結果three =one + two ==>0

運算結果three =one + two ==>0

MAX9 2017-10-26 22:13:35
public class imooc33 {?public static void main(String[] args){??int one=10;??int two=20;??int three=0;????int a=one+two;??int b=a+=one;??int c=a-=one;??int d=a*=one;??int e=a/=one;??int f=a%=one;??System.out.println("three =one + two ==>"+a);??System.out.println("three +=one ==>"+b);??System.out.println("three -=one ==>"+c);??System.out.println("three *=one ==>"+d);??System.out.println("three /=one ==>"+e);??System.out.println("three %=one ==>"+f);?}?}
查看完整描述

3 回答

?
習慣受傷

TA貢獻885條經驗 獲得超1144個贊

沒錯,最后答案就是0,計算f時當時的值是:
a = 30;
int f = a %= 10;
從右往左計算,先計算a %= 10,計算完 就是等于0

查看完整回答
1 反對 回復 2017-10-26
  • 3 回答
  • 1 關注
  • 1586 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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