When does the for loop initialize, test and modify ?
Just as in the while loop that counted, the for loop
- Initializes the loop control variable before beginning
- modified the loop control variable at the very end of each iteration of the loop
- performs the conditional termination test before each iteration of the loop
The for loop is easier to write