If you add the first and the last number, you have a sum of 101. The second number from the left and the second number from the right will also add up to 101. If you continue in this way, you get 50 pairs of numbers, each of which has a sum of 101, so the final result is 50 x 101.
The average is the sum of those 100 numbers divided by 100.
100
The sum of the numbers from 1 through 100 is 5,050.
The sum of the all prime numbers from 1 to 100 is 1,161
The sum of the squares of the first 100 natural numbers [1..100] is 338350, while the sum of the first 100 natural numbers squared is 25502500.
The average is the sum of those 100 numbers divided by 100.
20 +30 + 50
The following is for F95 and later (due to the use of intrinsic SUM ): My assumptions: -Your numbers are integers -Your numbers are stored in an array -The numbers you are describing are 0-100 program findSum !I assumed integer, replace this with your data type integer, dimension(100) :: numbers integer :: sumOfNumbers !We populate an array with our numbers !Replace this with your numbers do i=1,(size(numbers)+1) numbers = i end do !We find the sum of those numbers sumOfNumbers = sum(numbers) !We write out the sum to prompt write(*,*) 'Sum is: ', sumOfNumbers end program findSum
100
The sum of the first 100 odd numbers is 10,000.
The sum of the first 100 numbers, excluding zero, is 5,001.
The sum of the numbers from 1 through 100 is 5,050.
Two Numbers are 8 and 6. This is how. 8 + 6 = 14 and 8*8 + 6*6 = 64 + 36 = 100
The sum of the cubes of the first 100 whole numbers is 25,502,500.
The sum of the first 100 positive even numbers is 10,100.
The sum of the whole numbers from 1 to 100 inclusive is 5,050.
The sum of the first 100 positive even numbers is 10,100.