diod New Member Apr 6, 2012 #1 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 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
ericgibbs Well-Known Member Most Helpful Member Apr 6, 2012 #2 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.?
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.?