Computer Science, asked by Prathamgg, 1 year ago

What is the ideal situation to use a For....Next loop?

Answers

Answered by genius325
1
Whenever you face a situation in programming to repeat a task for several times (more than one times ) or you have to repeat a task till you reach a condtition, in these situations you can use loop statements to achieve your desired results. This kind of for loop is useful for iterating over arrays and for other applications in which you know in advance how many times you want the loop to iterate.


The FOR NEXT Loop , execute the loop body (the source code within For ..Next code block) to a fixed number of times.


For var=[startValue] To [endValue] [Step]
[loopBody]
Next [var]

Prathamgg: you are the brainliest
Answered by ayaanmalik
0
the ideal situation to use a loop is fire loop

Prathamgg: what did you mean
Similar questions