← ProblemsCircuits / Combinational Logic / Arithmetic Circuits

Half adder

64%arithmetic

Build a half adder: it adds two single bits a and b (no carry-in) and produces a sum bit and a carry-out bit.

a b | cout sum
0 0 |  0    0
0 1 |  0    1
1 0 |  0    1
1 1 |  1    0