问答详情
源自:3-3 Java中的赋值运算符

还是不知道哪里出了问题

   int one = 10 ;

        int two = 20 ;

        int three = 0 ;

        three=one+two;

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

        three+=one;

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

        three-=one;

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

        three*=one;

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

        three/=one;

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

        three%=one;

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

        

        


提问者:慕学习者666 2018-06-03 16:33

个回答

  • 慕学习者666
    2018-06-03 16:44:35

    我知道了。是双引号用错了