Write a python program to obtain principal amount,rate and time and calculate the compound interest
Answers
Answered by
3
Answer:
Python Program to Calculate Compound Interest
def compound_interest(principle, rate, time):
result = principle * (pow((1 + rate / 100), time.
return result.
p = float(input("Enter the principal amount: "))
r = float(input("Enter the interest rate: "))
t = float(input("Enter the time in years: "))
amount = compound_interest(p, r, t)
interest = amount - p.
Similar questions
Math,
5 months ago
India Languages,
5 months ago
Physics,
5 months ago
Math,
10 months ago
Computer Science,
10 months ago
Science,
1 year ago
Chemistry,
1 year ago
Environmental Sciences,
1 year ago