while loops

A while loop checks its condition before every pass and runs its body while it holds, so something in the body has to move the condition towards false, or the loop never ends, and a test that is false at the start runs the body zero times.

From AP Computer Science A.