问答详情
源自: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;

        SYstm.out.println("three+=one==>"+three);

        three-=one;

        System.out.printin("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);

}

}


提问者:weixin_慕用0557533 2022-11-24 11:06

个回答

  • 慕先生2348631
    2023-11-07 15:18:47

    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;

            ((SYstm)).out.println("three+=one==>"+three);

            three-=one;

            System.out.printin("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);

    }

    }


  • 费顺
    2023-10-18 17:42:14

    https://img1.sycdn.imooc.com/652fa8580001b12412150692.jpg拼写错了 System

  • 我不懂it
    2022-11-29 18:10:20

    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;

            SYstm.out.println("three+=one==>"+three);      // System.out.println("three+=one==>"+three); 

            three-=one;

            System.out.printin("three-=one==>"+three);   // 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);

    }

    }