题库 高中信息

题干

有如下VB程序段:
Dim a(1 to 5) as Integer, i as Integer, c as Integer
a(1) = 2 : a(2) = 1 : a(3) = 3 : a(4) = 4 : a(5) = 5
c = 0
For I = 3 to 5
If a(i - 2) + a(i - 1) = a(i) Then c = c + 1
Next i
Text1.Text = Str(c)
该程序运行后,文本框text1中显示的内容是(  )
A.1B.2C.3D.4
上一题 下一题 0.99难度 选择题 更新时间:2019-07-09 06:08:44

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