d*****6 发帖数: 100 | 1 How many times does this DO loop execute?
data work.trial;
do i=1 to 10 while(x<=4);
x+1;
end;
run;
答案是5, 为什么?我们并不知道x开始等于多少呀
多谢!! | d*****6 发帖数: 100 | 2 我是SAS新手,问题比较低级。但是我以为DO loop execute one time, x=1,
two times x=2, three times x=3, four times x=4, then this do loop should
stop.
请大虾解惑! | w***z 发帖数: 28 | 3 when using WHILE, the loop will execute as long as the WHILE expression is
true.
x开始等于0
as u said after four times x=4, x<=4 is still true, it will do loop one more
time | d*****6 发帖数: 100 | 4 I see. Thank you very much! |
|