In many cases we may use loop statement inside another
looping statement. This type of looping is called nested loop. In nested loop
the inner loop is executed first and then outer. The nested loop must be used to
input or output multi-dimensional array elements.
The following program illustrates the use of Nested loop.