小熊要加油
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);
}
}
慕课的提交代码有时候会有点问题,eclipse能输出就证明可以
three = one + two ==> 30
three += one ==> 40
three -= one ==> 30
three *= one ==> 300
three /= one ==> 30
three %= one ==> 0
Process completed.
Java入门第一季(IDEA工具)升级版
1165551 学习 · 17586 问题
相似问题