标签:
int number = 18; number = number % 2; if (number == 1) { System.out.println("奇数" );} else { System.out.println("偶数" );}
变量赋值判断奇偶
原文地址:http://www.cnblogs.com/OldZhao/p/4847543.html