Answer:
A counting loop.
Addition Problem
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.
Educational Technology · Programming Practice
Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.
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.