matlab for loopuse loop to determine how lont it will take to accumulate $1,000,000 in a bank account if you deposit $10,000 initially and $10,000 at the end of ech year; the account pays 6 percent annual interest. Please help!thx
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/17 21:55:21
matlab for loopuse loop to determine how lont it will take to accumulate $1,000,000 in a bank account if you deposit $10,000 initially and $10,000 at the end of ech year; the account pays 6 percent annual interest. Please help!thx
matlab for loop
use loop to determine how lont it will take to accumulate $1,000,000 in a bank account if you deposit $10,000 initially and $10,000 at the end of ech year; the account pays 6 percent annual interest. Please help!thx
matlab for loopuse loop to determine how lont it will take to accumulate $1,000,000 in a bank account if you deposit $10,000 initially and $10,000 at the end of ech year; the account pays 6 percent annual interest. Please help!thx
Please speak Chinese in Baidu.
clear;
a=10000;%initially
for n=1:50
a=a*1.06+10000;
if a>1000000
break
end
end
n %answer