i is the loop control variable in this case. It goes from 0 to 4.
Loops can be more general than that. Try looking up "for loop".
i is the loop control variable in this case. It goes from 0 to 4.
Loops can be more general than that. Try looking up "for loop".