while loops will loop continuously, and infinitely, until the expression inside the parenthesis, () becomes false. Something must change the tested variable, or the while loop will never exit.
while loop Syntax
while(expression) { Block of statements; }
while loop Execution Sequence
Previous Page:-Click Here
Pingback: Arduino - Loops - Adglob Infosystem Pvt Ltd