asdfasfadgfsd
public text v1 · immutablevar year:int:=0
var balance:real:=1000
var total:real:=0
var interest:real:=0
loop
year+=1
put "Year ",year
put "The initial deposit was $1000."
if year=1 then
interest:=1000*1.09-1000
elsif year>1 then
interest:=total*1.09-total
end if
balance:=balance*1.09
total:=total+balance
put "You would make $", interest:0:2, " on interest this year."
put "The balance at the end of year ", year," is ",total:0:2
put " "
exit when year=10
end loop