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
That makes perfect sence.
Perhaps in 10 more years I will be ready to apply for work with Lock Head Martin and propel the next Mars vehicle to welll... Mars. Until then, I will press on and keep learning the basics. Thanks again!
Padawan-78
Bookmarks