public class HelloWorld{ public static void main(String[] args) { int one = 10 ; int two = 20 ; int three = 0 ; int three1=one+two; int three2=three1+=one; int three3=three1-=one; int three4=three1*=one; int three5=three4/=one; int three6=three%=one; System.out.println(three1); System.out.println(three2); System.out.println(three3); System.out.println(three4); System.out.println(three5); System.out.println(three6);
1 回答
已采纳
蜂之谷
TA贡献564条经验 获得超863个赞
int three2=three1+=one; --> three1 = 30+10 = 40 int three3=three1-=one; --> three1 = 40-10 = 30 int three4=three1*=one; --> three1 = 30*10 = 300
添加回答
举报
0/150
提交
取消