0
1.2kviews
Explain continue and break statements with the help of suitable examples.

Subject : Structured Programming Approach

Title : Control Structures

Difficulty : Medium

1 Answer
0
7views

continue statement: The continue statement also neglects the statements after it in the Loop and transfers the control back to the starting of the loop for next iteration.*operation of continue statement in a for loop.

a) *operation of continue statement in a for loop.

enter image description here

b) *operation of continue statement in a while loop

enter image description here

c) *operation of continue statements in a do-while loop

enter image description here

Break statement: The break statement neglects the statement after itin the loop and transfers thecontrol outside the loop

a) *operation of break statement in a for loop

enter image description here

b) *operation of break statement in a while loop

enter image description here

c) *operation of break statement in a do-while loop

enter image description here

Please log in to add an answer.