Demo01-二元运算符

package operator;

public class Demo01 {
    public static void main(String[] args) {
        //二元运算符
        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 / (double)b);//加一个double强行转换


    }
}

 

上一篇:C# 发送邮件问题


下一篇:1.26(Least Common Multiple)