作业帮 > 英语 > 作业

matlab for loop

来源:学生作业帮 编辑:搜搜考试网作业帮 分类:英语作业 时间:2024/07/03 08:53:36
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 loop
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 %answe