------- android培训、java培训、IOS培训期待与您交流! ---------- //第一种方式:使用if语句取余的方式 #include<stdio.h> int main() { int a = 2; if(a%2 == 0) {