6.5.12 Test of oddness:
odd
The
odd
command tests an integer to see if it is odd.
odd
takes one argument:
n
, an integer.
odd(
n
)
returns
1
if
n
is odd and returns
0
if
n
is even.
Examples.
Input:
odd(148)
Output:
0
Input:
odd(149)
Output:
1