Roman C. answered 09/10/15
Tutor
5.0
(852)
Masters of Education Graduate with Mathematics Expertise
The way you add two integers if each can have either sign is as follows.
Case 1: At least one of them is 0.
0 + n = n + 0 = n.
Case 2: Same signs.
Add their absolute values and keep the sign.
For example, say you want to add -5 and -7. Start with with 5+7 = 12. Since both are negative, the answer will also be negative so you get a sum of -12.
Case 3: Opposite signs.
Take the difference between absolute values first. Then take the sign of the integer with larger absolute value.
For example, say we want to add int 5 and -7. Start with 7 - 5 = 2. Since -7 has larger absolute value, the answer will be negative, and so must be -2.