FORTRAN 77 Language Reference

END DO

The END DO @ statement terminates a DO loop and requires the following syntax:

END DO

Description

The END DO statement is the delimiting statement of a Block DO statement. If the statement label is not specified in a DO statement, the corresponding terminating statement must be an END DO statement. You can branch to an END DO statement only from within the range of the DO loop that it terminates.

Examples

Example 1: A DO loop with a statement number:


       DO 10 N = 1, 100 
              ... 
10     END DO 

Example 2: A DO loop without statement number:


       DO N = 1, 100 
       ... 
       END DO