判断是不是奇数

static bool CheckIsOddNumber(int num)
{
return (num & 1) == 1;
}

原文地址:https://www.cnblogs.com/zhshlimi/p/5195459.html