dim s,r
const pi=3.14
r=inputbox("请输入圆的半径")
s=pi*r*r
msgbox s
dim a,b
a=inputbox("请输入一个大于60的数字")
b=inputbox("请输入一个大于100的数字")
a=int(a)
b=int(b)
if a>60 and b>100 then
msgbox "合格"
else
msgbox "不合格"
end if
dim a
a=inputbox("请输入一个大于60的数字")
a=int(a)
if a>60 then
msgbox "合格"
else if a=60 then
msgbox "刚好60"
else
msgbox "不合格"
end if
end if
dim a,b,c,d
a=inputbox("请输入a值")
b=inputbox("请输入b值")
c=inputbox("请输入c值")
d=a*3+b*3
c=int(c)
if c=d then
msgbox "right"
else
msgbox "error"
end if
dim a,b
a=18
b=16
if a>b then
msgbox "a>b"
end if
dim a
a=inputbox("请输入数字")
a=int(a)
select case a
case 1
msgbox "one"
case 2
msgbox "two"
case 3
msgbox "three"
case else
msgbox "error"
end select
dim passwd
const pass="123456"
do
passwd=inputbox("请输入密码")
if passwd=pass then
msgbox "密码输入成功"
exit do
end if
loop
dim a
a=21 mod 5
msgbox a
dim b
b=21/5
msgbox b
dim c
c=2^2
msgbox c
dim d,e,f
d="3"
e="4"
f=d+e
msgbox f
dim g
g=3.14
msgbox int(g)
dim a,b,s
a=20
b=10
s=a/b+b
msgbox s