dim a,b,c ,s as integer
a=inputbox("请输入a")
b=inputbox("请输入b")
c=inputbox("请输入c")
if a=0 then
msgbox("a=0,该方程非二次方程")
end if
s=b^2-4ac
if s0 then ,msgbox("该题有两解,一:" & ((-b)+(s^(1/2))/2a & ",另一解为:"&((-b)-(s^(1/2))/2a )
dim a,b,c ,s as integer
a=inputbox("请输入a")
b=inputbox("请输入b")
c=inputbox("请输入c")
if a=0 then
msgbox("a=0,该方程非二次方程")
end if
s=b^2-4ac
if s0 then ,msgbox("该题有两解,一:" & ((-b)+(s^(1/2))/2a & ",另一解为:"&((-b)-(s^(1/2))/2a )