24.06.2015 Views

WAM Ch 2 - Iona Physics

WAM Ch 2 - Iona Physics

WAM Ch 2 - Iona Physics

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

Programming concepts:<br />

A loop is an instruction or group of instructions<br />

which is executed more than once.<br />

A loop may be constructed in several ways. One is called<br />

the DO loop. This is potentially an infinite loop.<br />

Do<br />

...<br />

...<br />

...<br />

Loop<br />

Another construction is called the for/next loop. It is<br />

controlled by a variable.<br />

For counter = 1 to 10<br />

...<br />

...<br />

...<br />

Next<br />

Note: For and Next ALWAYS<br />

occur in pairs!<br />

Oct 14 ­ 6:46 PM<br />

9

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

Saved successfully!

Ooh no, something went wrong!