一楼是重新改变了算法,而且起始年份是2000,你改为了2001.你问的是改错题,当然以原程序为基础修改.正解如下,答案是2024
set talk off
clear
s=1
for n=2001 to 2100
s=s*1.03
if s>=2
exit
endif
endfor
? n
set talk on
return
一楼是重新改变了算法,而且起始年份是2000,你改为了2001.你问的是改错题,当然以原程序为基础修改.正解如下,答案是2024
set talk off
clear
s=1
for n=2001 to 2100
s=s*1.03
if s>=2
exit
endif
endfor
? n
set talk on
return