110
The sum of the first 20 even numbers... is 110
int i, sum = 0; for (i=0; i<20; i+=2) sum+=i;
The sum of the squares of the first 20 natural numbers 1 to 20 is 2,870.
The answer is 20*20 = 400
110
The sum of the first 20 even numbers... is 110
var sum = 0; for (var i = 0; i < 20; i++) { sum = sum + i * 2; }
int i, sum = 0; for (i=0; i<20; i+=2) sum+=i;
The sum of the squares of the first 20 natural numbers 1 to 20 is 2,870.
The answer is 20*20 = 400
well, let's break it down. First, the even numbers between 1 and 11 are, 2,4,6,8,10. Now 2+4=6, 6+6=12, 8+12=20, 20+10=30. So, to answer your question simply, the sum of even numbers between 1 and 11, is 30.
50
It is 155 greater.
210
The numbers are 20, 22, 24 and 26.
The numbers are 20, 22, 24 and 26.