Show how to subtract 8 from 10 using twos complement in bina
Show how to subtract 8 from 10 using two\'s complement in binary.
Solution
Answer:
First find the 1\'s complement of 10 and 8 :
10 in binary = 1010
1\'s complement = 0101
now add 1 = 0101
+ 1
---------
0110
therefore 2\'s complement of 10 = 0110
2\'s complement of 8 = 1000 = 0111
+ 1
-----------------
1000
Now subtract = 0111 from 1000 i ,e subtracting 7 from 8 and the result is 1
1 0 0 0
- 0 1 1 1
-----------------
0 0 0 1 answer
