There are two ways to solve this problem:
You may notice that if you take away 100 from the series and add the smallest and largest number (1 + 99), you get 100. Then if add the next numbers in (2 + 98), you also get 100. Soon, you see a pattern. 3 + 97 = 100, 4 + 96 = 100 and so on. If you do this all the way to 50, you get 100, forty-nine time or 49*100 which 4900. You then add the 100 you took away earlier and add that to 4900 to get 5000. Lastly, because there is only one 50 in 1 to 100, it stays as 50 and you add that to 5000 to get the answer: 5050.
The second way is to use the summation equation. This only works if you are starting from 1 and adding all the consecutive numbers to a certain number, say n. The equation is n(n+1)/2 where "n" is the final number in the series which in this case is 100. So 100(100+1)/2 = 100(101)/2 = 10100/2 = 5050.
-99
-99
5050, ie (1 + 100) x (100/2)
The sum is 2500.
All you do is add all of the numbers 3 times and 1 an 9 4 times
-99
5050
You add the numbers in a loop. Here is an example in Java:int sum = 0;for (int i = 1; i
-99
It's 2550
-99
-99
5050, ie (1 + 100) x (100/2)
the answer is 2500 I am sorry but this answer is wrong. You only added the numbers between 1 and 100. The question is the first 100 odd numbers, you need to add 1 to 197. The correct answer is 10,000.
-99
The sum is 2500.
All you do is add all of the numbers 3 times and 1 an 9 4 times