What is nested loop — Turn It Facts
Apr 2, 2023
Define — A loop which contain inside another loop called nested loop.
Programm- #include <stdio.h>
#include <conio.h>
int main()
{
int i,j;
for(i=1;i<=10;i++)
{
for(j=1;j<=i;j++)
{
printf(“*”);
}
printf(“\n”);
}
return 0;
}
Output: *
**
***
****
*****