全部版块 我的主页
论坛 数据科学与人工智能 数据分析与数据科学 SAS专版
2412 1
2016-03-17

The following SAS program is submitted:

data WORK.LOOP;  X = 0;  do Index = 1 to 5  by  2;    X = Index;  end;run;

Upon completion of execution, what are the values of the variables X and Index in the SAS data set named WORK.LOOP?

  • X = 3, Index = 5
  • X = 5, Index = 5
  • X = 5, Index = 6
  • X = 5, Index = 7
答案是4,可为什么Index在这里是7呢?百思不得其解,跪求大神解惑!谢谢~

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

全部回复
2016-3-17 14:04:36
最后一次循环后,index仍然会迭代到下一个值
二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

相关推荐
栏目导航
热门文章
推荐文章

说点什么

分享

扫码加好友,拉您进群
各岗位、行业、专业交流群