In what situation you need a nested loop?
91 Likes
When the repetition of two tasks depend on each other in such a way that for every repetition of first task, the second tasks needs to be repeated a number of times, then we use nested loops.
Answered By
63 Likes
Differentiate between Labelled break and Unlabelled break
What do you mean by a nested loop?
How will you terminate outer loop from the block of the inner loop?
What do you mean by labelled break statement? Give an example.