LF Fortran 95

PAUSE Statement (obsolescent)

Description

The PAUSE statement temporarily suspends execution of the program.

Syntax

PAUSE

Remarks

When a PAUSE statement is reached, the string "Press any key to continue" is displayed. The program resumes execution when a key representing any printable character is pressed.

The PAUSE statement was considered obsolescent in Fortran 90, and has been deleted from the Fortran 95 language specification. Regardless of this, the PAUSE statement will continue to be supported by LF95.

Example

pause !"Press any key to continue . . ." is displayed