# Author: Scott Wehrwein
# Date: 04/13/2021
# A less tedious approach to calculating yearly balance in an
# account with interest that compounds yearly.

balance = 100.0
year = 1
while year <= 5:
    balance *= 1.02
    print(balance)
    year += 1
