|
|
|
|
|
Key Phrase in Problem Statement |
|
|
|
| |
|  |
|
|
|
|
The loop ends when a counter reaches 365 (count-countrolled loop). |
|
|
|
|
|
|
|
|
|
Process all the data in the file |
|
|
|
|  |
|
|
|
|
The loop ends when EOF occurs (EOF-controlled loop). |
|
|
|
|
 |
|
|
|
|
Process until 10 odd integers have been read |
|
|
|
|  |
|
|
|
|
The loop ends when 10 odd numbers have been input (event counter). |
|
|
|
|
 |
|
|
|
|
The end of the data is indicated by a negative test score |
|
|
|
|  |
|
|
|
|
The loop ends when a negative input value is encountered (sentinel-controlled loop). |
|
|
|
|