FORTRAN 77 Language Reference

END

The END statement indicates the end of a program unit with the following syntax:

END

Description

The END statement:

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.

Example

Example: END:


       PROGRAM MAIN 
       WRITE( *, * ) 'Very little' 
       END