Program to calculate compounding interest