While loop
n
A while loop continues to perform
an action as long as a condition is
true.
n
The
while
statement is composed
of a condition (a boolean
expression) and another
statement, the body.
n
syntax:
n
while
( condition )
n
body