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>FORTRAN</strong> Statements<br />

2.29 END DO Statement<br />

END DO<br />

The END DO statement is used to terminate the range of a "structured" DO statement. A structured DO<br />

statement is one in which a statement label is not present. For more information, see the description of the<br />

structured DO statement or the chapter entitled "Program Structure Control Statements" on page 193.<br />

Example:<br />

Example:<br />

DO X = -5.1, 12.8, 0.125<br />

.<br />

.<br />

.<br />

END DO<br />

X = -5.1<br />

DO WHILE( X .LE. 12.8 )<br />

.<br />

.<br />

.<br />

X = X + 0.125<br />

END DO<br />

END DO Statement 59

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

Saved successfully!

Ooh no, something went wrong!