I need help with for/while loop.

Questo/a domanda è stato/a segnalato/a da guygyuggfff
  • Segnalato come Spam da guygyuggfff il 19 Giu 2021.

    "><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 Commento

Why not try something, since this is clearly for homework? If we do your work for you, you learn nothing.

Risposte (0)

Questa domanda è chiusa.

Prodotti

Release

R2021a

Richiesto:

il 16 Giu 2021

Chiuso:

il 16 Giu 2021

Community Treasure Hunt

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

Start Hunting!

Translated by