Question-

Q9. Draw the truth table for a logic function that will subtract three bits to produce a

difference and a borrow.

10. Draw the logic diagram for a circuit that implements the function in question 9.

answer for Q9.

Truth table for Qn 9

_____B D -----B- Borrow D- Difference

0 0 0 | 0 0

0 0 1 | 1 1

0 1 0 | 1 1

0 1 1 | 1 0

1 0 0 | 0 1

1 0 1 | 0 0

1 1 0 | 0 0

1 1 1 | 1 1

Does my **truth table correct?** and I want to know how to draw **Logic diagram** for the logi function in qn9.

Thanks in Advance

:)