8 and -8; 8 + (-8) = 8 - 8 = 0, and 8 - (-8) = 8 + 8 = 16
When the sum of all the positive integers in the sum is exactly matched (in magnitude) by the sum of all the negative integers.
That's because the integers may be negative. For example, the sum of (-6) and (-6) is (-12), which is less than their difference (0).
The sum of the first 201 positive integers is 20100 if you include 0 (i.e. from 0 to 200). If you sum the integers from 1 to 201 instead, the sum is 20301.
Two integers which sum to zero (e.g. 3 and -3) are additive inverses of each other. All pairs of additive inverses sum to 0 and all pairs of integers which sum to 0 are additive inverses.
No. Consider 0 and 1. Or negative numbers, whose sum produces a smaller number.
-1, 0, 1
Zero (0).
The following will sum all integers from 1-100. Adjust according to your needs.int sum = 0;for (int i = 1; i
0
what is the sum of the first 10 positive integers? To me, if you include 0 as the first integer, then the tenth integer is 9 and the sum is 45. If you don't include 0, the tenth integer is 10, and the sum is 55.
The integers are -2, 0, 2 and 4.