A counting loop.
This program uses a common style of input file. Here is an example input file:
5 124 -89 97 301 -39
The first number, 5, says how many numbers follow. The 5 should not be added into the sum.
(Thought question: ) What is the advantage of this style? Click here for a