为什么这个就可以了

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

qq_Yourebeautif_0

2018-05-13 11:10

public class HelloWorld{
    phttps://www.imooc.com/code/1298#editor-tabs-javaublic static void main(String[] args) {
     int one = 10 ;
        int two = 20 ;
        int three = 0 ;
        int three1=one+two;
        three1=30;
        int three2=three1+one;
        three2=40;
        int three3=three2-one;
        three3=30;
        int three4=three3*one;
        three4=300;
        int three5=three4/one;
        three5=30;
        int three6=three5%one;
        three5=0;
        System.out.println("three=one+two:"+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:"+three);
       
       

写回答 关注

2回答

  • qq_Yourebeautif_0
    2018-05-13 12:24:11

    结果算是0

  • 慕兄7758
    2018-05-13 12:19:10

    可以就好

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

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

1165172 学习 · 17581 问题

查看课程

相似问题