0
What is the python program of compound interest?
using compound interest formula..
1 Antwort
+ 1
p = 100 # principal amount (100)
rate = 5 # annual rate (5%)
time = 10 # in years
freq = 12 # compounding frequency (monthly - 12, quarterly - 4, etc.)
compound = p * (pow((1 + rate / 100 / freq), time * freq))
print(compound)