for(initialization; condition; increment/decrements)
-------
outer for loop
{
for(initialization; condition; increment/decrements)
--------
inner for loop
}
Flowchart:-
Note:-
1. First it initialize the value of outer loop.
2. Then goes to outer for loop condition.
3. If outer for loop condition is true it goes to inner loop initialization.
4. After initialize the value it goes to inner for loop condition.
5. If that condition is true it executes the set of statements of the inner for loop.
6. Then it goes to inner for loop increment/decrements part.
7. After increment/decrements the values of inner for loop it goes to condition.
8. This process will be continue the until specific inner for loop condition will be false.
9. If inner for loop condition will false then it goes to outer for loop inc /dec part.
10. After the inc/dec the value of outer for loop then it goes to condition.
11. This process will be continued until the specific outer for loop condition will be false.
12. If the outer for loop condition will be false then it goes to next statement.
2. Then goes to outer for loop condition.
3. If outer for loop condition is true it goes to inner loop initialization.
4. After initialize the value it goes to inner for loop condition.
5. If that condition is true it executes the set of statements of the inner for loop.
6. Then it goes to inner for loop increment/decrements part.
7. After increment/decrements the values of inner for loop it goes to condition.
8. This process will be continue the until specific inner for loop condition will be false.
9. If inner for loop condition will false then it goes to outer for loop inc /dec part.
10. After the inc/dec the value of outer for loop then it goes to condition.
11. This process will be continued until the specific outer for loop condition will be false.
12. If the outer for loop condition will be false then it goes to next statement.
28 C-Programs
28 Formats
Click the Format image get the Program
__________________________________________________
___________________________________________________
_____________________________________________________
___________________________________________________
Post a Comment