Practice Problems
MATLAB-as-a-Calculator
Question

MATLAB as a Calculator

We borrowed $1000 at a 10% annual interest rate. If we did not make a payment for two years, and assuming there is no penalty for non-payment, how much do we owe now? Assign the result to a variable called debt.

||

P = 1000;
r = 10/100;
n = 2;
debt = P*(1+r)^(n)

||