@zephyr_sails By explain, I mean how you come up with this answer, is there a certain way to get the carry column from the first three column?

It took me some time to get sum = carry ^ bit1 ^ bit2; But I can't think a way to calculate carry until seeing your answer. Thanks.