package operator;
public class Demo01 {
public static void main(String[] args) {
//算术运算符
//ctrl+D 复制当前行到下一行
int a = 10;
int b = 20;
int c = 25;
int d = 25;
System.out.println(a+b);
System.out.println(a-b);
System.out.println(a*b);
System.out.println(a/b);
System.out.println(a/(double)b);
}
}
输出:
30
-10
200
0
0.5
Process finished with exit code 0