Python Program for compound interest

# Python3 program to find compound interest for given values.

def compound_interest(principle, rate, time):

# Calculates compound interest

Amount = principle * (pow((1 + rate / 100), time))

CI = Amount - principle

print("Compound interest is", CI)

# Driver Code

compound_interest(10000, 10.25, 5)


OUTPUT:

Compound interest is 6288.946267774416

Post a Comment

Previous Post Next Post