Basic Three Types Of Loops Which Are:
1: while loop
while(expression)
{
statement1
statement2
statement3
...................
}
2:do-while loop
do
{
statement1
statement2
statement3
...................
}while(expression);
3:for loop
for(expression1;expression2;expression3)
{
statement1
statement2
statement3
...................
}
IF WE TALK ABOUT NESTING LOOPS.........
when a loop written inside another loop,it's call nesting of loops.
Ex.
for(i=0;i<ROW;i++)
{
for(j=0;j<COL;j++)
{
printf("(%d,%d)\t",i,j);
}
printf("\n");
}
NOTE: not necessary that inside loop are same.a