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

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

最后的那個是怎么得出來的?

最后的那個是怎么得出來的?

傾唱G尐調 2015-12-02 14:57:23
three = one+ two ==>30three += one ==>40three -= one ==>30three *= one ==>300three /= one ==>30three %= one ==>0
查看完整描述

3 回答

?
澤濟天下

TA貢獻2條經驗 獲得超0個贊

%是取余 能整除就是0咯

查看完整回答
反對 回復 2015-12-02
?
傾唱G尐調

TA貢獻1條經驗 獲得超0個贊

還是不明白,我把值代入 30%10=3 呀!

查看完整回答
反對 回復 2015-12-02
?
Perona

TA貢獻355條經驗 獲得超403個贊

前面是字符串,后面是變量值

參考代碼

public?class?HelloWorld{
????public?static?void?main(String[]?args)?{
	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?+=?one?==>?"+three);
????????three-=one;
????????System.out.println("three?-=?one?==>?"+three);
????????three*=one;
????????System.out.println("three?*=?one?==>?"+three);
????????three/=one;
????????System.out.println("three?/=?one?==>?"+three);
????????three%=one;
????????System.out.println("three?%=?one?==>?"+three);
????????}
}


查看完整回答
反對 回復 2015-12-02
  • 3 回答
  • 0 關注
  • 1184 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

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

幫助反饋 APP下載

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

公眾號

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