题目内容
(请给出正确答案)
[单选题]
在VB中,设整型变量x、y的值分别是3、6,则下列语句中,能实现在标签Label1中显示“s = 18”的语句是()
A.Label1.Caption = "s = x * y
B.Label1.Caption = "s = " + Str(x * y)
C.Label1.Caption = "s = " (x + y)* 2
D.Label1.Caption = "s = " + Val(x * y)
答案
B、Label1.Caption = "s = " + Str(x * y)
如果结果不匹配,请 联系老师 获取答案