标签:ati string out int 运算符 class opera pac ring
package com.zhang.www.base.operater;
public class Demo05 {
public static void main(String[] args) {
//关系运算符返回的结果: 正确,错误 布尔值表示
//if
int a=10;
int b=20;
int c=22;
//取余,模运算
System.out.println(c%b);//c/b 22/20=1......2
System.out.println(a>b);
System.out.println(a<b);
System.out.println(a==b);
System.out.println(a!=b);
}
}
标签:ati string out int 运算符 class opera pac ring
原文地址:https://www.cnblogs.com/dzcnb/p/14651288.html