All Subjects
Light
AP Computer Science A
An iteration statement, also known as a loop, allows for repeated execution of a block of code based on a specified condition. It helps automate repetitive tasks and saves time.
A type of iteration statement that repeats a block of code for a specific number of times.
While Loop: A type of iteration statement that repeats a block of code as long as a certain condition remains true.
Do-While Loop: Similar to while loop but guarantees at least one execution before checking the condition again.