How to code 5 Digit Binary Adder?

Have you looked at the digital examples that ship with the IDE?