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

就是啊   为什么不加 int

public class HelloWorld{

    public static void main(String[] args) {

   int one = 10 ;

        int two = 20 ;

        int three = 0 ;

        there=one+two;

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

        there+=one;

        System.out.println(there+=one==>there);

        there-=one;

        System.out.println(there-=one==>there);

        there*=one;

        System.out.println(there*=one==>there);

        there/=one;

        System.out.println(there/=one==>there);

        there%=one;

        System.out.println(there%=one==>there);                                                                                                                                                                                                                                                                                                                      

        

        

        

    

}

}


正在回答

2 回答

three 前面的int吗  因为之前已经定义过变量类型 one two three 变量类型都是int 不需要再定义直接赋值就可以啦

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

蒲公英521 提问者

非常感谢!
2016-07-10 回复 有任何疑惑可以回复我~

被你误解了,应该是three,不算there。one, two, three~~~

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

举报

0/150
提交
取消

就是啊   为什么不加 int

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号