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强行转换 } }
标签:25,二元,int,System,运算符,Demo01,println,out 来源: https://www.cnblogs.com/x5253/p/15919410.html