24.11.2014 Views

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

Open Watcom FORTRAN 77 Language Reference

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Language</strong> <strong>Reference</strong><br />

2.44 FORMAT Statement<br />

<br />

label<br />

FORMAT fs<br />

where:<br />

fs is a format specification and is described in the chapter entitled "Format" on page 225.<br />

label<br />

is the statement label used by an I/O statement to identify the FORMAT statement to be used.<br />

The FORMAT statement must be labelled.<br />

Example:<br />

REAL X<br />

X = 234.43<br />

PRINT 100, X<br />

100 FORMAT(F10.2)<br />

END<br />

In the previous example, the PRINT statement uses the format specification in the FORMAT statement<br />

whose statement label is 100 to display the value of X.<br />

For more information on the FORMAT statement, see the chapter entitled "Format" on page 225.<br />

76 FORMAT Statement

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!