How to calculate compound interest?
12 次查看(过去 30 天)
显示 更早的评论
We borrowed $1000 money with an annual interest 10%. If we do not pay any penalty in 2 years then how much we owe the money? Answer must be assign in a variable called debt .
回答(1 个)
SAA
2020-7-30
It sounds like this is a copy paste of an assignment but ok
P = 1000; % principle
r=0.1; n=2;
debt = P*(1+r)^n
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Install Products 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!