ID:161880
 
Is there a proc to check if a number is odd or even? If so could you link me to it in the reference, if not, how would I go about creating one?
Scizzees wrote:
Is there a proc to check if a number is odd or even? If so could you link me to it in the reference, if not, how would I go about creating one?

proc/IsOdd(n)
return n%2
proc/IsEven(n)
return !(n%2)


Lummox JR
In response to Lummox JR (#1)
Thanks Lummox.