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

求大神解答,怎么错的?

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

提问者:qq_慕娘8208356 2019-03-20 23:54

个回答

  • WC自动机
    2019-03-21 18:33:22

    前面定义的three到后面就写成了there。

  • hroks
    2019-03-21 13:53:27

    three