Computer Science, asked by chiragdhoot03, 10 months ago

Write a python program to obtain principal amount,rate and time and calculate the compound interest

Answers

Answered by soujanyabhirade
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