9 lines
85 B
C++
9 lines
85 B
C++
bool isOdd(int x)
|
|
{
|
|
return x % 2;
|
|
}
|
|
|
|
bool isEven(int x)
|
|
{
|
|
return !(x % 2);
|
|
}
|