题库 高中信息

题干

在VB中,设整型变量x、y的值分别是3、6,则下列语句中,能实现在标签Label1中显示“s = 18”的语句是()
A.Label1.Caption = "s = x * y"
B.Label1.Caption = "s = " + Str(x * y)
C.Label1 = "s = " (x + y)^ 2
D.Label1.Caption = "s = " + Val(x * y)
上一题 下一题 0.99难度 选择题 更新时间:2019-03-02 02:54:39

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