study guides for every class

that actually explain what's on your next test

While loop

from class:

AP Computer Science Principles

Definition

A while loop is a type of conditional looping structure that repeatedly executes a block of code as long as its specified condition remains true. It checks the condition before executing the code block.

congrats on reading the definition of while loop. now let's actually learn it.

ok, let's learn stuff
© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.