# Python program to find compound interest
def compound_interest(principle, rate, time):
# Calculates compound interest
Amount = principle * (pow((1 + rate / 100), time))
CI = Amount - principle
print("Compound interest is", CI)
P=float(input("Enter Principle Value : "))
R=float(input("Enter Rate Value : "))
T=float(input("Enter Time Value : "))
compound_interest(P,R,T)
#clcoding.com
Enter Principle Value : 1000 Enter Rate Value : 11 Enter Time Value : 3 Compound interest is 367.6310000000003
0 Comments:
Post a Comment