The SASDATA.BANKS data set has five obs. when the following SAS program is submitted:
libnamesasdata 'SAS-date-library';
data allobs;
set sasdata.bank;
capital=0;
do year=2000 to 2020 by 5;
capital+((capital+2000)*rate);
output;
end;
How many obs.will the ALLOBS data set contain?
A. 5 B.15 C.20 D.25
I was wondering why the answer is D.25 rather than A.5???
3xxxxxx
x[此贴子已经被作者于2007-3-7 13:54:14编辑过]