SAS中文论坛
标题:
趣味题目
[打印本页]
作者:
shiyiming
时间:
2010-11-4 21:15
标题:
趣味题目
From dwdus's blog on Baidu
<p>The question by my friend LEO:</p>
<p><font face="宋体" size="2">%macro aa;<br>
%let condition=( 1.2>=1 and 1.2<1.5 ) and ( 1123.1>=800 and 1123.1<1200 );<br>
<br>
%if &condition %then %do;<br>
%put Y;<br>
%end;<br>
%else %do;<br>
%put N;<br>
%end;<br>
<br>
%let condition=( 1.2>=1 and 1.2<1.5 ) and ( 1123>=800 and 1123<1200 );<br>
%if &condition %then %do;<br>
%put Y;<br>
%end;<br>
%else %do;<br>
%put N;<br>
%end;<br>
<br>
%mend aa;<br>
%aa;</font></p>
<p> </p> <a href="http://hi.baidu.com/dwdus/blog/item/3d72a090271ea382a977a4c6.html">阅读全文</a>
<br/><b>类别:</b><a href="http://hi.baidu.com/dwdus/blog/category/%C4%AC%C8%CF%B7%D6%C0%E0">默认分类</a> <a href="http://hi.baidu.com/dwdus/blog/item/3d72a090271ea382a977a4c6.html#comment">查看评论</a>
欢迎光临 SAS中文论坛 (https://mysas.net/forum/)
Powered by Discuz! X3.2