For Loop with Continue
1 min read ·
The
continue statement is used to skip the current iteration of a for loop and move to the next iteration.The loop does not stop.
Basic Syntax
Simple Example
Output:
1
2
4
5
Skipping Even Numbers
continue with String
continue with List
Key Difference
Important Point
Note
continue skips only the current iteration, not the entire loop.