The END DO @ statement terminates a DO loop and requires the following syntax:
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.
DO 10 N = 1, 100 ... 10 END DO
DO N = 1, 100 ... END DO