DO WHILE statement

Standard: F77 F90 F95 F2003 F2008 F2018 Example program


<Syntax>

[construct-name : ] DO [ label ] [ , ] WHILE ( expr )

The DO WHILE statement is a special case of the DO statement.

<Semantics>

A DO loop that begins with a DO WHILE statement executes its loop repeatedly, as long as the WHILE expr is true at the beginning of each iteration.

This is explained fully under DO construct.

<Related>

CONTINUE statement, CYCLE statement, DO construct, END DO statement, EXIT statement, GO TO statement