7.1.12 Testing oddness
The
odd
command tests an integer to see if it is odd.
odd
takes
n
, an integer.
odd(
n
)
returns 1 if
n
is odd and returns
0
if
n
is even.
Examples
odd
(148)
0
odd
(149)
1