➽ Program:-

P = float(input("Enter Principal Amount: "))

T = float(input("Enter Time in years: "))

R = float(input("Enter Rate of Interest: "))

 

Compound_Interest = P * (pow((1+R/100), T))

 

print("Compound Interest = ",round(Compound_Interest,2))

➽ Output:-

Enter Principal Amount: 1700
Enter Time in years: 3
Enter Rate of Interest: 6.7
Compound Interest =  2065.11