|
|
|
|
|
|
|
|
|
|
|
|
|
|
v |
VB6,
like most languages, has several iteration statements. We’ll
|
|
|
just
use one in CSE/IMT 100:
|
|
|
v |
The
semantics are as follows:
|
|
|
|
o |
The
termination condition is tested and if it is false the statements are
|
|
all
skipped; execution continues after Loop
|
|
|
|
o |
If
it is true, the statements are performed once
|
|
|
|
o |
The
termination condition is tested again, and if it is false the loop is
|
|
|
over
and the statements are skipped; continue after Loop
|
|
|
|
o |
If
it is true, the statements are performed a second time
|
|
|
|
o |
…
|
|