Find the sum of all even integers from 2 to 100 inclusive.
Note
There are 50 even numbers; average of first and last is (2+100)/2 = 51; sum = 50×51 = 2,550.
Find the sum of all even integers from 2 to 100 inclusive.
There are 50 even numbers; average of first and last is (2+100)/2 = 51; sum = 50×51 = 2,550.