i need program in mechine language about odd and even numbers

Status
Not open for further replies.

diod

New Member
hi
i need program with mechine or accembly language to recognise odd and even numbers.if number is odd print 1 and if it is even print 0.
thanks
 
hi,
If the numbers are ODD then Bit 0 will be '1' and if EVEN Bit 0 will be '0'

So just test bit 0.

Is this what you are asking.?
 
Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…