dim a , b
dim result as string
if a = 0 then
a =""
else if
a -b = 0 then
msgbox " divide number cannot be zero "
endif
(a+b)/(a-b) = result
msgbox result
希望采纳爱奇亮
a=2
b=1
msgbox (a+b)/(a-b)
(a+b)/(a-b)
(a+b)/(a-b) 这个就是 VB 里的
表达式
dim a , b
dim result as string
if a = 0 then
a =""
else if
a -b = 0 then
msgbox " divide number cannot be zero "
endif
(a+b)/(a-b) = result
msgbox result