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

为什么 three = one + two;不能int three = one + two 吗

        int three = one + two;

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

        int three += one;

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

        int three -= one;

        System.out.println("three -= one ==>" + three);

        int three *= one;

        System.out.println("three *= one ==>" + three);

        int three /= one;

        System.out.println("three /= one ==>" + three);

        int three %= one;

        System.out.println("three %= one==>" + three);

为什么不要加int。。。。。

正在回答

2 回答

three在那之前已经用int定义过了、

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

举报

0/150
提交
取消

为什么 three = one + two;不能int three = one + two 吗

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