i have commented out where my question is, someone explain to me why j=1; should be put right before the do-while loop.Code:{
int i, j;
i = 1;
/* j = 1; */
while (i <=3){
printf("The start of iteration %d of the outer loop.\n",i);
j = 1; /* why this should be here and not under i=1;*/
do
{
printf(" Ieteration %d of the inner loop,\n", j, i);
j++;
}
while (j<=4);
i++;
printf("The end of iteration %d of the outer loop.\n", i);
}
return 0;
}