Visible to Intel only — GUID: GUID-54ABE0AE-4ED7-4E8F-9D88-E568E51199D9
Visible to Intel only — GUID: GUID-54ABE0AE-4ED7-4E8F-9D88-E568E51199D9
END DO
Statement: Marks the end of a DO or DO WHILE loop.
END DO [name]
name |
(Optional) Is the name of the DO or DO WHILE construct. If name is present, it must match the name that appears as the corresponding DO or DO WHILE construct name. If name does not appear, the corresponding DO or DO WHILE statement must not specify a construct name. |
Description
There must be a matching END DO statement for every DO or DO WHILE statement that does not contain a label reference.
An END DO statement can terminate only one DO or DO WHILE statement.
Example
The following examples both produce the same output:
DO ivar = 1, 10
PRINT ivar
END DO
ivar = 0
do2: DO WHILE (ivar .LT. 10)
ivar = ivar + 1
PRINT ivar
END DO do2