Today we were taught about the concept of Nested loops in Java. The placing of one loop inside the body of another loop is called nesting. When you "nest" two loops, the outer loop takes control of the number of complete repetitions of the inner loop and outer loops changes only when inner loop is completed. While all types of loops may be nested, the most commonly nested loops are for loops.
We made Some patterns making programs to understand the concept of Nested loops .
0 comments:
Post a Comment