100 integers?. Learn more about sum, homework. Write a script that uses a for loop to calculate the sum of the first 100 integer numbers.
What would you do if your teacher asked you add all the numbers from 1 to 100? Gauss's method forms a general formula for the sum of the first n integers.
Art of Problem Solving's Richard Rusczyk adds the numbers from 1 to 100 the fast way. Visit www.