Computer Science, asked by vickysaini32, 11 months ago

isko explain kro to​

Attachments:

Answers

Answered by anishasa
0

Explanation:

Outer-Loop for loop

{

// body of outer-loop

The for loop within another for loop is known as nested for loop

Inner-Loop. for loop

{

// body of inner-loop

The only which lies inside is called inner for loop

}

... ... ...

The for loop which lies outside the second for loop is called outer for loop

}

Example:

#include <stdio.h>

int main()

{

int a, b;

for(a = 1; a <= 5; a++) Outer for loop

{

for(b = 1; b <= 5; b++) Inner for loop

{

printf("%d ", b);

}

printf("\n");

}

return 0;

}

Similar questions