LF Fortran 95

STOP Statement

Description

The STOP statement causes execution of a program to terminate.

Syntax

STOP [stop-code]
Where:

stop-code is a scalar CHARACTER constant or a series of 1 to 5 digits.

Remarks

When a STOP statement is reached, the optional stop-code is displayed, if present.

Example

program foo stop ! program execution terminated end program foo