DO index variable = start, end, step statements END DO
DO n index variable = start, end, step statements n CONTINUE
In both cases, the step variable is optional and is assumed to have the value 1 if omitted. As with IF-ELSE and CASE constructs, DO loops may also have names.
DO WHILE (logical argument) statements END DO
DO . . . conditional statement EXIT . . . END DO
In this instance, a set of statements are executed repetitively until the conditional statement is satisfied. When this occurs, program control jumps to the next executable statement following the END DO.
Copyright © 1996-7 by Stanford University. All rights reserved.