Yass! The control variable i
changes its value every time the loop is executed: from 1
to 2
to 3
and so on, until the run condition becomes false
.
Not quite! The last piece of the for loop defines how to get to the desired result. Usually, that means either addition or subtraction.