*简单选择结构示例
*2012.11.8
clear
accept"请输入人的姓名:" to peo_name &&从键盘输入人的姓名
input"请输入人的年龄:" to peo_age &&从键盘中输入人的年龄,整数 if(peo_age>=100)
?peo_name+"的年龄为高龄"
else
if ((peo_age>=70).AND.(peo_age<100))
?peo_name+"的年龄为老龄"
else
if((peo_age>=50).AND.(peo_age<70))
?peo_name+"的年龄为中老年"
else
if((peo_age>=30).AND.(peo_age<50))
?peo_name+"的年龄为中年"
else
if((peo_age>=18).AND.(peo_age<30))
?peo_name+"的年龄为青年"
else
if((peo_age>=0).AND.(peo_age<18))
?peo_name+"的年龄为少年"
endif
endif
endif
endif
endif #mailContentContainer .txt {height:auto;}