The do. . .while loop in the following program is intended to read some numbers until it reaches a sentinel (in this case, -1). It is supposed to add all of the numbers except for the sentinel. If the data looks like:
12 5 30 48 -1
the program fails to work as intended. Make any necessary corrections.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.