chapter  8
Using loops
Pages 20

The ‘for’ statement is very flexible; the counter variable does not need to be called i and the repeat code need not involve simply adding one. Here is an alternative example using the variable n and the repeat code takes 0.4 from its value for each loop. The loop continues while n is greater than zero.