What is nested loop
In : BCA Subject : CPPMA nested loop is a loop that is inside another loop.
The depth of a nested loop is determined by the problem's complexity.
We can have as many nested loops as we like.
Consider a nested loop in which the outer loop runs n times and is surrounded by another loop.
The inner loop is repeated m times.
The total number of times the inner loop runs throughout the execution of the programme is then n*m.