The while Loop
Syntax
while <expression>
<statements>
end
The while loop repeatedly executes program statement(s) as long as the expression remains true.
An expression is true when the result is nonempty and contains all nonzero elements (logical or real numeric). Otherwise, the expression is false.
No comments:
Post a Comment