In nested loops, to come out of the 1 point
outer loop before the iteration
finishes, you need to have
break in inner loop
break in outer loop
break in both inner and outer loop
continue in inner loop
Answers
Answered by
3
ain nested loops, to come out of the outer loop before the iteration break in outer loop.
In a nested loop, a break statement only stops the loop it is placed in. Therefore, if a break is placed in the inner loop, the outer loop still continues. However, if the break is placed in the outer loop, all of the looping stops.
Similar questions