GO Solution For UVa 10469 - To Carry or not to Carry. In this post we will see how we can solve this challenge in GoLang for UVa Online Judge.

Problem Description

6+9=15 seems okay. But how come 4+6=2?

You see, Mofiz had worked hard throughout his digital logic course, but when he was asked to imple- ment a 32 bit adder for the laboratory exam, he did some mistake in the design part. After tracing the design for half an hour, he found his flaw!! He was doing

...

You can find the full details of the problem To Carry or not to Carry at UVa Online Judge

Sample Input

4 6
6 9

Sample Output

2
15

Solution: Please check the main.go snippet for the solution.

Solution originally posted at: Github by @codingsince1985