Computer Science, asked by indira7026, 3 months ago

What is the use of STEP statement in FOR...NEXT

Answers

Answered by ksnm250
0

Answer:

The for... next statement is an iterative, incremental loop statement used to repeat a sequence of statements for a specific number of occurrences. A for... next loop executes a set of statements for successive values of a variable until a limiting value is encountered.

Explanation:

What is the use of STEP statement in for loop?

Once the loop starts and all statements in the loop have executed, step is added to counter. At this point, either the statements in the loop execute again (based on the same test that caused the loop to execute initially), or the loop is exited and execution continues with the statement following the Next statement.

Similar questions