using 1s complement method solve 11-5
Answers
Answer:
* 0110 *
Explanation:
hai friend,
hope this answer will help you,
so let's jump into it!
the question is 11 - 5
so it can be written as 11 + (-5),
now we have to convert into binary,
we know the binary digit for
- 11 is 1011
- 5 is 0101
but we want -5,
so we take the 1's complement of -5,
1's complement of -5 = 1010 [ turn all the zero of 5 to one and all the one's of 5 to zero]
now we have to add it together,
so,
1011 + [ you can do it with this chart,
1010 no: sum: carry(remainder)
1 0101 0+0 0 0
0+1 1 0
1+0 1 0
1+1 0 1
1+1+1 1 1 ]
so now the '1' marked in italics, the carry of the last addition, we should add it with the number excluding it, I know it will be some difficult to understand but you can see it down there!
so now,
0101 +
1
0110 [using the same chart]
And it's the answer!
* 0110 *
hope you got it!
thanks
GAUTHAM29