Info

此问题已关闭。 请重新打开它进行编辑或回答。

I need help with for/while loop.

1 次查看(过去 30 天)
Tri Dang
Tri Dang 2021-6-16
关闭: John D'Errico 2021-6-16
此 个问题 已被 guygyuggfff 标记
I want to calculate anual compound of an investment using for loop, lets call its P is a final value.
I have 3 variables P0 the investment amount, r is rate, and y=years.
how can I write a code, lets call it a #term (i) which is a min number of term require for the value of P to exceed 3 times the orignial value of P0 with given r
  1 个评论
John D'Errico
John D'Errico 2021-6-16
Why not try something, since this is clearly for homework? If we do your work for you, you learn nothing.

回答(0 个)

此问题已关闭。

标签

产品


版本

R2021a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by