You know full adder circuit, this circuit contains two “half adder circuits” and an “or” integrated.

Half Adder Circuit:

Full Adder Circuit:

While we were writing the code, we should use “half adder” blocks. Because, in this way, we can develop codes easily and everyone can read our code easily.

Step by step: