Re: Requesting help again... as a beginner....

new topic     » goto parent     » topic index » view thread      » older message » newer message
jimcbrown said...
if remainder(a, 2) != 0 then 
puts(1,"\nThat is an odd number.") 
end if 

Bits twiddling is neater and faster:

if and_bits(a, 1) then ... 

jiri

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu