Answer:
Yes — the group data would consist of just the -1.
End of the Chapter
You have reached the end of the chapter. You may wish to review the following. Click on a subject that interests you to go to where it was discussed.
- Three types of input loops.
- Example of a input counting loop.
- Common errors with input counting loops.
- Groups of input data in one file.
- Example program with two groups of data.
- Sentinel controlled input loop.
- Danger with using a sentinel controlled loop.
- Example program using a sentinel controlled loop.