Arduino - while loop


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

While Loop
arduino_loops.htm
Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements