The Sum is given by the XOR operation, and the Carry is given by the AND operation. So, the sum is given by:
$$S = A \oplus B$$
Now, let's consider the two-input NAND gate. The output of a NAND gate is LOW (0) when both of its inputs are HIGH (1). So, the output
Show more…