Thursday, December 11, 2008

USING While ...End While Loop

The structure of a While….End While is very similar to the Do Loop. it takes the following format:

While condition

Statements

End While

The above loop means that while the condition is not met, the loop will go on. The loop will end when the condition is met.

Example:
The structure of a While….End While is very similar to the Do Loop. it takes the following format:

While condition

Statements

End While

The above loop means that while the condition is not met, the loop will go on. The loop will end when the condition is met.

No comments:

Post a Comment