为了账号安全,请及时绑定邮箱和手机立即绑定

System.out.println(three%=one);

public static void main(String[] args) {

   int one = 10 ;

        int two = 20 ;

        int three = 0 ;

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

        System.out.println(three+=one);

        System.out.println(three-=one);

        System.out.println(three*=one);

        System.out.println(three/=one);

        System.out.println(three%=one);

30=10+20=30

30+=30+10=40

30-=40-10=30

30*=30*10=300

30/=300/10=30

30%=30%10=0?

%=是模等于什么叫模等于?

        这里我不懂啊?怎么是0?


正在回答

3 回答

three=one+two ==> three = 10+20 = 30

three+=one ==> three = three + one = 30+10 = 40  

three-=one ==> three = three - one = 40 - 10 = 30

three*=one ==> three = three * one = 30 * 10 =300

three/=one ==> three = three / one  = 300 / 10 =30

three%=one ==> three = three%one = 30%10 =0  //这里的意思是取余操作,30对10取余,不就是0吗~


0 回复 有任何疑惑可以回复我~
#1

大侃 提问者

非常感谢!
2015-01-16 回复 有任何疑惑可以回复我~

元素节点的nodeName不是应该与标签名相同吗?为什么是div而不是p?

jzfzsnbdskubtwxaalduqf

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

%是求余 的方法。 30%10 是0  30%11 就是1咯。 以此类推

0 回复 有任何疑惑可以回复我~
#1

Joye

30%11是8别误导别人
2015-01-21 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

System.out.println(three%=one);

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信