No... sometimes things change by fractional amounts.
Here is a program fragment that is to count upward by tenths, that is,
0.0, 0.1, 0.2, 0.3, and so on up to 10.0.
These amounts are to be placed in the variable value
.
This program is an example of a common situation: the actual value you are interested in is not the loop control variable, but a value that is calculated from the loop control variable.
Fill in the blanks so that the variable value
is assigned the values we want:
0.0, 0.1, 0.2, ... 1.0, 1.1, ... 9.8, 9.9, 10.0.