SAS中文论坛

 找回密码
 立即注册

扫一扫,访问微社区

查看: 609|回复: 0
打印 上一主题 下一主题

趣味题目

[复制链接]

49

主题

76

帖子

1462

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
1462
楼主
 楼主| 发表于 2010-11-4 21:15:29 | 只看该作者

趣味题目

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&gt;=1 and 1.2&lt;1.5 ) and ( 1123.1&gt;=800 and 1123.1&lt;1200 );<br>
<br>
&nbsp;&nbsp;  %if &amp;condition %then %do;<br>
&nbsp;&nbsp;&nbsp;  %put Y;<br>
&nbsp;&nbsp;  %end;<br>
&nbsp;&nbsp;  %else %do;<br>
%put N;<br>
&nbsp;&nbsp;  %end;<br>
<br>
%let condition=( 1.2&gt;=1 and 1.2&lt;1.5 ) and ( 1123&gt;=800 and 1123&lt;1200 );<br>
&nbsp;&nbsp;  %if &amp;condition %then %do;<br>
&nbsp;&nbsp;&nbsp;  %put Y;<br>
&nbsp;&nbsp;  %end;<br>
&nbsp;&nbsp;  %else %do;<br>
%put N;<br>
&nbsp;&nbsp;  %end;<br>
<br>
&nbsp;&nbsp;  %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>&nbsp;<a href="http://hi.baidu.com/dwdus/blog/item/3d72a090271ea382a977a4c6.html#comment">查看评论</a>
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|手机版|Archiver|SAS中文论坛  

GMT+8, 2026-2-3 20:13 , Processed in 0.067253 second(s), 20 queries .

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

快速回复 返回顶部 返回列表