A continue statement is used in loops (such as for or while) to skip the rest of the current iteration and move on to the next iteration.
Think of it like being in line at a buffet. If you encounter food you don't like, instead of stopping there, you use a continue statement which skips that dish and moves on to the next one.
Break Statement: A break statement is used in loops to immediately terminate the loop and continue with the next line of code after the loop.
Loop: A loop is a programming construct that allows a set of instructions to be repeated multiple times until a certain condition is met.
Iteration: Iteration refers to each repetition or cycle through a loop.
Study guides for the entire semester
200k practice questions
Glossary of 50k key terms - memorize important vocab
© 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.