Computer Science, asked by kay5, 1 year ago

distinguish between step loop and nested loop

Answers

Answered by Anonymous
30
A step loop is a repeated series of loop blocks. A loop block consists of one or more loop lines of graphical screen elements.

where as the
A nested loop is a loop within a loop, an inner loop within the body of an outer one.
Answered by AskewTronics
3

The difference between step loop and nested loop is as follows:

Explanation:

Step Loop: A step loop referred to a single loop which do multiple steps for every value of the loop. It executes until the loop condition will not false.

Nested loop: A nested loop is a loop in which one loop is defined in the body of other loop. It can be any type : two-nested loop or three-nested loop or anything else. The inside loop executes for every value of first loop and for every condition which is defined it its until the condition will not false.

For example in C-language:

// step loop.

for(i=0;i<5;i++)

{

 //statement

}  

// nested loop.

for(i=0;i<5;i++)

{

 for(j=0;j<i;j++)

{

   //statement.

}

}

Learn More:

  • Loop : https://brainly.in/question/6280215
Similar questions