课程
/后端开发
/Java
/Java入门第一季(IDEA工具)升级版
这是结果
three = one + two ==> 30three += one ==> 40three -= one ==> 30three *= one ==> 300three /= one ==> 300three %= one ==> 0
2015-04-04
源自:Java入门第一季(IDEA工具)升级版 3-3
正在回答
System.out.println("three *= one ==> "+(three*=one)); //three=300 three*=one; //three=3000 three /= one; //three=300 System.out.println("three /= one ==> "+ three );
虽然没看懂这是要干嘛,不过代码跟结果显示的一样。
举报
0基础萌新入门第一课,从Java环境搭建、工具使用、基础语法开始
3 回答 int one = 10 ; int two = 20 ; int three = 0; three=one+two; three=three/one;=0 three/=one;=30我始终不明白three/=one为什么等于30
1 回答three%=one;
2 回答three %= one指示的模运算
3 回答three-=one----------------three=three-one的值不是20吗,为什么是30
2 回答为什么 three = one + two;不能int three = one + two 吗