History, asked by jeetpattani06, 11 months ago

Subtract (10110), from (110110) using the two's complement method.​

Answers

Answered by nitinrajverma4
0

Answer:

Algorithm:

Step1: Equal number of bits in both the operands.

Step 2: Find the 1’s complement of the subtrahend.

Step 3: Add the complement number with the minuend.

Step 4: If got a carry, add the carry to its LSB else take 1’s complement of the result which will be negative.

Explanation:

(1101)2 is minuend and (101)2 is subtrahend. Step 1: 1101 – 1010

Step 2: 1’s complement of 1010 = 0101 Step 3: 1101 + 0101 = 1 0010

Here 1 LSB is a carry bit. Step 4: 0010 + 1 = 0011

Hence option 2 is the correct answer.

Similar questions