I know that we can use the logic of binary adder where Sum = a XOR b and Carry = a AND b
Sum = a XOR b
Carry = a AND b
I have also got a solution:
Hi don't be think yourself too difficult. Here the simple way to do that.
Consider a=5, b=10; c=a-(-b); c=15;
that is it.