题库 高中信息

题干

下列VB程序运行时,在文本框Text1中输入数据-25,在文本框Text2中输入数据-100,单击命令按钮Command1后,文本框Text3中显示的内容是______。
Private Sub Command1_Click( )
Dim a As Integer, b As integer, c as integer
a = Val(Text1.Text)
b = Val(Text2.Text)
If a>b and a>0 Then c="sqr(a)" else c=sqr(abs(b))
Text3.Text = str(c)
End Sub
上一题 下一题 0.99难度 填空题 更新时间:2016-01-08 02:17:46

答案(点此获取答案解析)