while (expression) statement
while
Required keyword.
expression
A boolean valued expression tested before each iteration.
statement
A statement (possibly compound) to be executed in each iteration of the loop.
The while loop executes the enclosed statements while the specified condition is true.
1. An infinite loop.
while (yes) { sleep 30 time }
2. Type a file.
list = "home$login.cl" while (fscan (list, line) != EOF) print (line)
SEE ALSO, for, case, break, next,