慕沐8443002
2018-11-19 21:00
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);
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);
three+=one;
System.out.println(three);
three-=one;
System.out.println(three);
three*=one;
System.out.println(three);
three/=one;
System.out.println(three);
three%=one;
System.out.println(three);
}
}
没得分号
你没有eclipse.exe?用eclipse.exe编程马上就可以看出哪行有错误 一共错了三行,都是因为分号;
Java入门第一季(IDEA工具)升级版
1165548 学习 · 17586 问题
相似问题