I need help understanding the for statements. This segment of code repeats itself as so
1
22
333
4444
However, i need understanding in how it repeats itself. Thanks
#include <stdio.h>
int main ()
{
int i,j;
for(i=1;i<5;i++)
{
for(j=1;j<=i;j++)
printf("%d",i);
printf("\n");
}
}