Zero plus two is two, and I shall explain:
Say that you have a container, and you want to fill it with cookies. You get container, and place in two cookies. I don't need to tell you: there are two cookies in the container. Now, if you want to add two more cookies, you place in two cookies but you already had two in there, so you now have four. Quite odvious and basic, but that's a really good way to explain it and sometimes math can lose it's practicality.
int i, sum = 0; for (i=0; i<20; i+=2) sum+=i;
The sum is 96.
The sum of 2n, for n= 0 to 29.
#include using std::cout;using std::endl;int main(){int sum = 0;cout
No two vectors of unequal magnitude cannot give the sum 0 because for 0 sum the 2 vectors must be equal and in opposite direction
int i, sum = 0; for (i=0; i<20; i+=2) sum+=i;
The sum of 2 plus 0 plus 0 plus 0 plus 0 plus 0 plus 0 plus 0 plus 0 plus 0 plus 0 plus 0 plus 0 plus 0 plus 0 plus 0 equals 2.
if (n%2==0) sum=n/2*(n+1); else sum=(n+1)/2*n;
The sum is 96.
The sum of 2n, for n= 0 to 29.
#include using std::cout;using std::endl;int main(){int sum = 0;cout
No two vectors of unequal magnitude cannot give the sum 0 because for 0 sum the 2 vectors must be equal and in opposite direction
the sum of 2 plus 2 is 4/2+2=44
Sum = Addition 2 + 2 = 4
6 + 0 + 36 = 42
That is an unsolvable problem, because there are an infinite number of even numbers. However, with limits, you could say... int NMax = ...; int Sum = 0; for (N=2; N<=NMax N+=2) Sum += N;
You add the numbers in a loop. Here is an example in Java:int sum = 0;for (int i = 1; i