Example 1 (section 1.4.1) - sum of 1 to 10 using while-statement