bool isOdd(int x) { return x % 2; } bool isEven(int x) { return !(x % 2); }