NESTED LOOPS IN C
Loops or cycles are commands whose role is to repeat one or more other commands a certain number of times. Those repeating statements are written in the body of the for loop. It can be any other command, and therefore a new for command.Let us now look at the next task:
Example 1: Print the first 100 natural numbers in 10 rows and 10 columns.
This task can be done without nested loops. See example on Loops in C/C++ examplesHowever, we will show here how the same example can be done using nested loops.
To print a number, we use the printf command:
printf("%2d",number);
