不行呀输出不了请大神帮忙看看

来源:3-3 Java中的赋值运算符

小熊要加油

2019-09-23 20:48

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);
        three%=one;
        System.out.println("three %= one ==> "+three);
        }
}
      

写回答 关注

2回答

  • qq吡吡吡吡吡吡哔
    2019-09-24 16:26:52
    已采纳

    慕课的提交代码有时候会有点问题,eclipse能输出就证明可以

  • qq吡吡吡吡吡吡哔
    2019-09-23 21:21:53

    three = one + two ==> 30

    three += one ==> 40

    three -= one ==> 30

    three *= one ==> 300

    three /= one ==> 30

    three %= one ==> 0


    Process completed.


    小熊要加油

    但是我在我的慕课里面输出不了,在我的eclipse里面却可以

    2019-09-23 21:33:32

    共 1 条回复 >

Java入门第一季(IDEA工具)升级版

0基础萌新入门第一课,从Java环境搭建、工具使用、基础语法开始

1165551 学习 · 17586 问题

查看课程

相似问题