0

What is the python program of compound interest?

using compound interest formula..

17th Sep 2018, 1:51 PM
Dudekula Useni
1 Resposta
+ 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)
17th Sep 2018, 3:55 PM
Kuba Siekierzyński
Kuba Siekierzyński - avatar