Just increment a variable and only pay attention to the LSB of that variable...
i.e.
x = x + 1
if x.0 = 0 then -the variable is an even number
if x.0 = 1 then -the variable is an odd number
Just increment a variable and only pay attention to the LSB of that variable...
i.e.
x = x + 1
if x.0 = 0 then -the variable is an even number
if x.0 = 1 then -the variable is an odd number
Bookmarks