Notes for the lectures on FORTRAN Programming - Ingegneria ...
Notes for the lectures on FORTRAN Programming - Ingegneria ...
Notes for the lectures on FORTRAN Programming - Ingegneria ...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
DO – WHILE Statement<br />
• The DO-WHILE statement executes <str<strong>on</strong>g>the</str<strong>on</strong>g> block of statements while a specified<br />
ed<br />
c<strong>on</strong>diti<strong>on</strong> remains true<br />
Syntax<br />
DO lab WHILE (expr(<br />
expr)<br />
lab<br />
statements<br />
statement (or END DO)<br />
where:<br />
lab (opti<strong>on</strong>al) is a label specifying an<br />
executable statement in <str<strong>on</strong>g>the</str<strong>on</strong>g> same program unit;<br />
expr is a scalar logical expressi<strong>on</strong> enclosed in paren<str<strong>on</strong>g>the</str<strong>on</strong>g>ses.