题型:单选题 题类:常考题 难易度:容易
浙教版高一信息技术 专题五:VB程序设计
Private Sub Command1_Click()
Dim u As Single, x As Single, y As Single, z As Single
u=Val(Text1.Text)
x=(u+10)/(u*u+8)
y=(u-1)/(x+u)
z=Sqr(x-y)
Text2.Text=Str(z)
End Sub
程序运行时,在文本框Text1中输入-1,单击命令按钮Command1,弹出如图所示的错误提示信息。产生此错误的语句是( )
试题篮