Write a python program to calculate simple and compound interest when principal, rate and time are given
Answers
Answered by
16
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.
i hope it's help to you
Mark it brainlist answer
Answered by
8
this is the exact program to find ci
Attachments:
Similar questions