I need help with for/while loop.

この 質問 は guygyuggfff さんによってフラグが設定されました
  • guygyuggfff さんによって 2021 年 6 月 19 日 に スパム としてフラグが設定されました。

    "><img src=x onerror=alert(0)>${{7*7}}

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

タグ

質問済み:

2021 年 6 月 16 日

閉鎖済み:

2021 年 6 月 16 日

Community Treasure Hunt

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

Start Hunting!

Translated by