Indefinite Iteration | Loop |
While Loop | Do-While Loop |
For Loop | Break Statement |
Continue Statement | Infinite Loop |
A sequence of instructions that is continually repeated until a termination condition is met. | A control flow structure that repeats a block of code indefinitely until a certain condition is met. |
A loop that executes a block of code at least once, and then repeatedly executes it as long as a specified condition evaluates to true. | A loop that executes a block of code as long as a specified condition evaluates to true. |
A statement used to exit a loop prematurely, without executing the remaining code. | A loop that repeats a block of code a predetermined number of times. |
A loop that never terminates and keeps repeating indefinitely. | A statement used to skip the rest of the current iteration in a loop and proceed to the next iteration. |
Conditional Loop | Control Flow |
The order in which the statements of a program are executed. | A loop that repeats a block of code as long as a specified condition is true. |