Go to the first, previous, next, last section, table of contents.

LOOP Statement

The LOOP statement executes stmts repeatedly in an infinite loop. Normally an EXIT statement appears in some IF statement in stmts to exit the loop when some condition becomes TRUE.


Example

The following example prints "Hello" forever.

The following code reads from standard input until there is an eof.


Go to the first, previous, next, last section, table of contents.