example of using a double variable as a counter. The two loops are identical
in concept, and therefore, should output the same result. They would if real
numbers are stored precisely in computer memory. Because the value of 0.1
cannot be represented precisely in computer memory, the second one will
actually print out 11, while the first one prints out 10, as expected.