💻ap computer science a review

While loop

Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated August 2025

Definition

A while loop is a control flow statement that allows a block of code to be executed repeatedly as long as a specified condition is true.

"While loop" also found in:

2,589 studying →