Bummer! This is just a preview. You need to be signed in with an account to view the entire instruction.

Instruction

While Loop

A while loop is a code construct that runs a set of statements, known as the loop body, while a given condition, known as the loop expression, is true. At each iteration, once the loop statement is executed, the loop expression is evaluated again.

  • If true, the loop body will execute at least one more time (also called looping or iterating one more time).
  • If false, the loop's execution w...