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

int one = 10 ; int two = 20 ; int three = 0; three=one+two; three=three/one;=0 three/=one;=30我始终不明白three/=one为什么等于30

 int one = 10 ;        

 int two = 20 ;        

 int three = 0;        

 three=one+two; 

 three=three/one;=0  

three/=one;=30我始终不明白three/=one为什么等于30

正在回答

3 回答

300除以10不就是30吗!

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

        int one = 10 ;

        int two = 20 ;

        int three = 0 ;

        three = one + two; //当前three为:10+20=30

        three += one; //当前three为:30+10=40

        three -= one; //当前three为:40-10=30

        three *= one; //当前three为:30*10=300

        three /= one; //当前three为:300/10=30

        每次计算three的值都在变


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

300/10=30

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

举报

0/150
提交
取消

int one = 10 ; int two = 20 ; int three = 0; three=one+two; three=three/one;=0 three/=one;=30我始终不明白three/=one为什么等于30

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