Python Program to find Compound Interest

principle = int(input("Enter principle amount: "))
rate = int(input("Enter interest rate: "))
time = int(input("Enter time(years): "))
ci= principle * pow((1 + rate / 100), time) - principle
print("Compound interest is ",ci)

OUTPUT:

Enter principle amount: 5400
Enter interest rate: 8
Enter time(years): 3
Compound interest is 1402.4448000000011

Sharing Is Caring

Leave a Comment