Nested For Loop in C# (Multiplication Table) – C# Programming Example
C# Console For Loop

Nested For Loop in C# (Multiplication Table)

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.  While all types of loops may be nested, the most commonly nested loops are for loops.

C# allows a for loop inside another for loop.

Example 1:

Output:

 

Example 2:

Output:

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: