Continue Statement
The continue statement is a control flow statement used to skip the current iteration of a loop and continue with the next iteration. When the continue statement is encountered inside a loop, it jumps to the next iteration, ignoring the code within the loop for the current iteration.
Break Statement
The break statement is a control flow statement which is used to terminate the execution of a loop. Most commonly, it is used with loops and switch statements. When the break statement is encountered inside a loop, the program immediately exits that block, and the control moves out of the loop.
Practice Exercises
Complete these exercises to reinforce your learning and earn XP
Sign in to track your progress and earn XP!
Exercise 1 of 2Easy
Which of the following is a best practice in programming?
10 XP~2 min
Exercise 2 of 2Easy
Code that is easy to read and understand is called ___ code.
10 XP~2 min