Computer Science, asked by jawaidsaman5735, 17 hours ago

Using 2’s complement method, solve 54(10) – 87(10)

Answers

Answered by pragnyayadav22
3

Answer:

The steps to be followed in subtraction by 1’s complement are:

i) To write down 1’s complement of the subtrahend.

ii) To add this with the minuend.

iii) If the result of addition has a carry over then it is dropped and an 1 is added in the last bit.

iv) If there is no carry over, then 1’s complement of the result of addition is obtained to get the final result and it is negative.

Evaluate:

(i) 110101 – 100101

Solution:

1’s complement of 10011 is 011010. Hence

Minued - 1 1 0 1 0 1

1’s complement of subtrahend - 0 1 1 0 1 0

Carry over - 1 0 0 1 1 1 1

1

0 1 0 0 0 0

The required difference is 10000

Please mark me brainliest

Similar questions