Solve the subtraction with the following unsigned binary numbers by taking the 2's complement of the subtrahend:
i.100 – 110000 ii. 11010 - 1101.
Answers
Answered by
2
it's (ii)
--------l
pls mark me braileist
Answered by
4
Answer:
i) 100 - 110000
Here A = 000100, B = 110000
First find 2's complement of B = 110000
2's complement = 1's complement + 1
1's complement of 110000 is 001111
Now add 1 : 001111 + 1 = 010000
Add 2's complement of B and A
000100 + 010000 = 010100
Since there is no carry generated, again find the 2's complement of 010100
1's complement of 010100 is 101011
Now add 1 : 101011 + 1 = 101100
So, the answer is -101100
ii) 11010 - 1101
Here A = 11010, B = 01101
First find 2's complement of B = 01101
2's complement = 1's complement + 1
1's complement of 01101 is 10010
Now add 1 : 10010 + 1 = 10011
Add 2's complement of B and A
11010 + 10011 = 101101
Since carry is generated. Ignore the leftmost bit.
So, the answer is 01101
Similar questions