Performing Fundamental Arithmetic Operations on Integers
Performing Fundamental Arithmetic Operations on Integers
We have to add a negative integer and a positive integer. So take the difference between the two
numbers and keep the sign of largest integer. So -47 + 84 = 37
We have to add the two negative integers. So add the two numbers and keep the negative sign. So,
Subtraction of Integers
To subtract two integers, add the opposite of the second integer to the first integer.
Example
7– 4=3
7 - (-3) = 7 + 3= 10 (opposite of -3 = 3)
-7 – (+3) = -7 - 3 = = -10
-7 - (-3) = = - 7 + 3 = = -4
Solution:
We have to subtract two negative integers. The opposite of second integer is 90. Now add this number
with the first integer by applying addition rules. So -35 + 90 = 55
Solution:
Here, we have to subtract two integers with different signs. The opposite of second integer is -3. Now
add this number with the first integer by applying addition rules. -15 + - 3 = -18