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

求大神指点下哪里错了

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

    


提问者:宝慕林5691060 2018-07-07 16:30

个回答