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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

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

2.33 END LOOP Statement<br />

END LOOP<br />

The END LOOP statement is used in conjunction with the structured LOOP statement. The END LOOP<br />

statement marks the end of a sequence of statements which are to be repeated. The LOOP statement marks<br />

the beginning of the loop. The LOOP-block is executed until control is transferred out of the LOOP-block.<br />

The QUIT statement may be used to transfer control out of a LOOP-block.<br />

Example:<br />

LOOP<br />

READ *, X<br />

IF( X .GT. 99.0 ) QUIT<br />

PRINT *, X<br />

END LOOP<br />

For more information, see the chapter entitled "Program Structure Control Statements" on page 193.<br />

64 END LOOP Statement

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

Saved successfully!

Ooh no, something went wrong!