19.12.2012 Views

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

Computer Programming Concepts and Visual Basic David I. Schneider

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.

142 <strong>Computer</strong> <strong>Programming</strong> <strong>Concepts</strong> <strong>and</strong> <strong>Visual</strong> <strong>Basic</strong><br />

values m, m + 1,..., n in order, <strong>and</strong> the body is executed once for each of these values. If<br />

m > n, then execution continues with the statement after the For...Next loop.<br />

When program execution reaches a For...Next loop, such as the one shown previously, the<br />

For statement assigns to the control variable ithe initial value m <strong>and</strong> checks to see whether it is<br />

greater than the terminating value n. If so, then execution jumps to the line following the Next<br />

statement. If i

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

Saved successfully!

Ooh no, something went wrong!