Computer Science, asked by sahil328, 1 year ago

difference between step loop and nested loop. any 2 difference

Answers

Answered by AmanSinghBhatti
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 skyfall63
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:

  1. Dynamic loop
  2. 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:

  1. For loop
  2. While loop
  3. Do while loop
Similar questions