![]() |
![]() |
![]() |
![]() |
![]() |
|
In Chapter 20, you learned about the while
statement:
while (Boolean expression) embedded statement
The
while reading pattern consists of a
while statement with an input expression in the place
reserved for a Boolean expression:
while (input expression) embedded statement
The idea is to process data until the input expression stops the loop.