
302 SOF T WARE ENGINEERING AND TESTING
15.8 FOR LOOP
For <Counter>=<Start> To <End>
<Statement>
Next
The Counter is incremented by 1 each time the loop is performed. The loop is
performed until the value of the Counter becomes equal to the < End > value. You
can exit the For Loop by using the Exit For statement.
The Counter is incremented by 1 by default. You can increment it by any
number by specifying Step < no.>
Look at the example given.
For N=1 to 100 Step 2
<Statement>
Next
In this For statement, Counter N will be incremented by two until the value
of N reaches 100, which means the loop will be performed 50 times. ...