我这个代码里面 / 没用,应该怎么做呀?求大佬解答

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

qq_慕慕7443411

2020-09-24 16:38

public class HelloWorld{

    public static void main(String[] args) {

    int one = 10 ;

        int two = 20 ;

        int three = 0 ;

        three = one+tow;

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

        

        

        

        

        

        

        

        

        

        

        

        

        

        

        

        

        

    

}

}


写回答 关注

3回答

  • 陈彩燕
    2020-09-24 20:42:10
    已采纳

    第六行的two,写成tow了。

  • 五八十三
    2020-09-28 10:29:06

    下次记得报报错一起发出来

    qq_慕慕7...

    好的,?,

    2020-10-05 16:10:23

    共 1 条回复 >

  • qq_慕慕7443411
    2020-09-25 10:11:30

    谢了,大佬


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

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

1167138 学习 · 17927 问题

查看课程

相似问题