Sum of first n natural numbers is (n) x (n + 1)/2
Here we have the sum = 100 x (101)/2 = 50 x 101 = 5050
The sum of the whole numbers from 1 to 100 inclusive is 5,050.
The sum of all the odd numbers from 1 through 100 is 10,000
n*(n+1)=sum 100*(100+1)=10100
The sum of the numbers 1 to 100 is 5050.
The sum of the first 100 odd numbers (1 through 199) is 10000 (ten thou)
The sum of the numbers from 1 through 100 is 5,050.
The sum of the whole numbers from 1 to 100 inclusive is 5,050.
101
The sum of the all prime numbers from 1 to 100 is 1,161
The sum of all the odd numbers from 1 through 100 is 10,000
n*(n+1)=sum 100*(100+1)=10100
You add the numbers in a loop. Here is an example in Java:int sum = 0;for (int i = 1; i
The sum of the numbers 1 to 100 is 5050.
The sum of the first 100 counting numbers (1-100) is 5,001.
The sum of these composite numbers, including 100, is 3989.The sum of all numbers between 1 and 100 is 5,050. From this we need to subtract the sum of 1 plus all the prime numbers below 100. The sum of the primes is 1,060. Subtracting (1 + 1060) or 1,061 from 5,050 yields 3,989.
101
50