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

答案!!!!!!!!!!!!

public class HelloWorld{

    public static void main(String[] args) {

   int one = 10 ;

        int two = 20 ;

        int three = 0 ;

       

        three = one + two;

        three += one;

        three -= one;

        three *= one;

        three /= one;

        three %= one;

        

        


提问者:Jasono 2015-10-27 10:04

个回答

  • java2018
    2015-11-25 20:23:00

    public class HelloWorld{

        public static void main(String[] args) {

       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);

    答案就在题目下边:

    ?不会了怎么办