题库 高中信息

题干

下列VB程序运行时,单击命令按钮Command1后,文本框Text1中显示的内容是 ,文本框Text2中显示的内容是
Private Sub Command1_Click()
Dim i As Integer, c As Integer, n As Integer
c =" 0"
n=10
for i =" 2" to 10 step 3[:Zxxk.Com]
If  n  Mod  i =" 0"  Then 
c = c+i
else
c=" c" * i
end if
next i
Text1.Text = Str(i)
Text2.Text = Str(c)
End Sub
上一题 下一题 0.99难度 填空题 更新时间:2016-03-10 07:31:03

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