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