主题:s
016565
[专家分:0] 发布于 2009-07-28 19:23:00
输入年份判断属相
回复列表 (共1个回复)
沙发
FFKK [专家分:1610] 发布于 2009-07-28 19:37:00
cls
input "a=“;a
if a mod 12 =4 then? "shu"
if a mod 12 =5 then ? "niu"
if a mod 12 =6 then ? "hu"
if a mod 12 =7 then ? "tu"
if a mod 12 =8 then ? "long"
if a mod 12 =9 then ? "she"
if a mod 12 =10 then ? "ma"
if a mod 12 =11then ? "yang"
if a mod 12 =0 then ? "hou"
if a mod 12 =1 then ? "ji"
if a mod 12 =2 then ? "gou"
if a mod 12 =3 then ? "zhu"
end
我来回复