2
2
No, the product is, but not the sum. 0 + 2 = 2
2
0
var sum = 0; for (var i = 0; i < 20; i++) { sum = sum + i * 2; }
4
Do this in reverse. The sum of -1 and -1 is -1+-1=-2 The difference of -6 and -6 is -6-(-6)=-6+6=0 0 increased by -2 is 0+-2=-2 The sum of 10 and -2 is 10+-2=8 Translation: 8
int i, sum = 0; for (i=0; i<20; i+=2) sum+=i;
sum = 0 for(n = 0; n <= 10; n += 2) sum += n;
The numbers are -2, -1, 0, 1 and 2.
== The sum of any number and zero is that number.(2+0== 2) == the sum of any number and zero is that number. (2+0=2)
:−3+0+1+2 = 0 :−3*0*1*2 = 0