# Python Program To Calculate Compound Intreset

The formula of compound interest is

**A** = *P(1+ R/100) ^{T }*

**Compound** **Interest = A - P**

A is Amount

P is the Principle amount

R is Rate

T is Time

#### Program

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | # Python program to find Compound interest # write a program to calculate Compound interest def CompoundInterest(p,r,t): # caluclate the Compound interest and stored it in result Compound_interest = p * (pow((1 + r / 100), t)) # print the result print('The Compound Interest is',Compound_interest) # take input from the users p = int(input("Enter the principal amount: ")) r = float(input("Enter the rate of interest: ")) t = int(input("Enter the time period: ")) # call the function CompoundInterest(p,r,t) # Python program to find Compound interest - docodehere.com |

#### Output

Enter the principal amount: 1000
Enter the rate of interest: 12
Enter the time period: 2
The Compound Interest is 1254.4