difference between step loop and nested loop. any 2 difference
Answers
Answered by
6
loop is the simple one which does not stops until any condition gets false where as nested loop is a loop within a loop
Answered by
1
Step Loop:
It is a type of repeated blocks of screen field. Each blocks have one or more fields.
Step loop screens are ordered by row as primary and column as secondary.
Step loop attributes are static=fixed and dynamic=variable.
Step loop types:
- Dynamic loop
- Static loop
Nested Loop:
A Loop inside another loop is also known as nested loop.
In nested loop, we can insert any one loop inside the body of outer loop or inner loop and it called as nesting loop.
When we “nest” two loops, the inner loop takes repeated actions to complete the loop, in such case outer loop controls the inner loop.
Nested loop types:
- For loop
- While loop
- Do while loop
Similar questions