The END statement indicates the end of a program unit with the following syntax:
The END statement:
Must be the last statement in the program unit.
Must be the only statement in a line.
Can have a label.
In a main program, an END statement terminates the execution of the program. In a function or subroutine, it has the effect of a RETURN. @
In the FORTRAN 77 Standard, the END statement cannot be continued, but f77 allows this practice. @
No other statement, such as an END IF statement, can have an initial line that appears to be an END statement.
PROGRAM MAIN WRITE( *, * ) 'Very little' END