This program will read principal, rate and time in years and then print compound interest on entered principal for given time period.
Compound interest is the amount in which interest is added into the principle so that interest also can be earned interest with the principle.
The formula to get compound interest is:
compound_interest=principal*((1+rate/100)time-1)