Computer Science, asked by AbhinavDeep196, 11 months ago

2 differences between break and continue

Answers

Answered by kourtaranpreet5
0
Break jumps out of loop and continue skip if the condition is satisfied
Answered by Dipta516
1

Explanation:

break: 1)It is used to terminate the loop.

2) It causes early termination of the loop.

3) It can be used in switch case as well as if else statement.

continue: 1)It stops the current iteration and jumps to the next iteration.

2) It causes early execution of the next loop.

3) It can't be used in switch case.

hope this answer might help.

Similar questions