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);
}
}
three 前面的int吗 因为之前已经定义过变量类型 one two three 变量类型都是int 不需要再定义直接赋值就可以啦
被你误解了,应该是three,不算there。one, two, three~~~