Intel® Fortran Compiler 16.0 User and Reference Guide
Statement: Primarily used to terminate a labeled DO construct when the construct would otherwise end improperly with either a GO TO, arithmetic IF, or other prohibited control statement.
CONTINUE
The statement by itself does nothing and has no effect on program results or execution sequence.
The following example shows a CONTINUE statement:
DO 150 I = 1,40 40 Y = Y + 1 Z = COS(Y) PRINT *, Z IF (Y .LT. 30) GO TO 150 GO TO 40 150 CONTINUE
The following shows another example:
DIMENSION narray(10) DO 100 n = 1, 10 narray(n) = 120 100 CONTINUE