8) In a nested while or for loop, when you use break in inner most loop, the effect is
O Jump to the outer most loop
O Jump out of all loops
O Jump out of inner most
O We cannot use break in nested loop, so causes error
Answers
Answered by
1
Answer:
Jump to the outer most loop.
Explanation:
If it helps kindly mark it as brainliest.
Answered by
0
USING BREAK IN A NESTED LOOP
In a nested while or for loop, when you use break in inner most loop, the effect is Jump to the outermost loop
EXPLANATION:
* A break statement in a nested loop only terminates the loop in which it is put. As a result, even if the inner loop is broken, the outer loop continues.
* If the break is placed in the outer loop, however, all looping is stopped.
* When you need to repeat an action on the data in the outer loop on each trip through the outer loop, nested loops are beneficial.
Similar questions