powered by
Check whether a number is even or odd.
IsEven(x) IsOdd(x)
Logical indicating whether the argument is even (or odd).
An integer or vector of integers.
Steven L. Scott
IsEven(2) ## TRUE IsOdd(2) ## FALSE
Run the code above in your browser using DataLab