The For Loop repeats a group of statements in a specified number of times while a loop index counts the number of loop iterations as the loop performs.
This is the syntax in constructing a loop.
- For [counter variable] as [datatype] = [start #] to [end #]
- nex [counter variable]
- For i As Integer = 1 To 10
- i = +i
- Next i