While Statement
A
while statement
tests a condition to see if it is non-zero (true), and while it is true a loop is executed. e.g.
while
x
>
0
do
a
=
a
*
2 x
=
x
-
1
end while