Problem:
A half adder is a circuit that adds two bits to give a sum and a carry.
Question- Give the truth table for a half adder, and design the circuit using only two gates. Then design a circuit which will find the 2’s complement of a 4-bit binary number. Use four half adders and any additional gates.
Please describe half adder with the help of circuit and truth table.