判断奇偶数

package test;

public class test {

	public static void main(String[] args) {
		// TODO Auto-generated method stub

	int a =101;
	
	
		if (a / 2 == 0)
		{
			System.out.println("a是奇数");
		}
		else	
		{
			System.out.println("a是偶数");
		}
		
	
			
	}
}

  

原文地址:https://www.cnblogs.com/zhuxiaolin/p/4848281.html