请教一下我这个编法的问题所在
我是这样写的
int one = 10 ;
int two = 20 ;
int three = 0 ;
three=one+two;
three+=one;
three-=one;
three*=one;
three/=one;
three%=one;
System.out.println("three%=one==>"+three);
System.out.println("three/=one==>"+three);
System.out.println("three*=one==>"+three);
System.out.println("three-=one==>"+three);
System.out.println("three+=one==>"+three);
System.out.println("three=one+two==>"+three);
我这样写的话里面的three就恒是0 是不是一定要按照给的答案那样编写three才不会一直为0啊
恳请解答一下!