subtract 13(10) from 35(10) using 2's complement method
Answers
Answer:
Answer is 010110
Explanation:
Convert the given numbers from base 10 to base 2 ( convert decimal numbers 35 and 13 to binary form)
= 100011
= 1101
Find Subtraction of 100011 and 1101 using 2's complement method
Here A = 100011, B = 001101.
Find A - B = ? using 2's complement
First find 2's complement of B = 001101
Note : 2's complement of a number is 1 added to it's 1's complement number.
Step-1: 1's complement of 001101 is obtained by subtracting each digit from 1
1 1 1 1 1 1
- 0 0 1 1 0 1
_______________________
1 1 0 0 1 0
Step-2: Now add 1 to the 1's complement to obtain the 2's complement :
110010 + 1 = 110011
Step-3: Now Add this 2's complement of B to A
1 1 1
1 0 0 0 1 1
+ 1 1 0 0 1 1
___________________________
1 0 1 0 1 1 0
The left most bit of the result is 1, called carry and it is ignored.
So answer is 010110.
Hence the answer is 010110
#SPJ2