成人高等教育 / VisualBasic
正确率:100%
设执行以下程序段时依次输入1、3、5,执行结果为______。
Dim a(4) As Integer, b(4) As Integer
For K = 0 To 2
a(K + 1) = Val(InputBox("请输入数据"))
b(3 - K) = a(K + 1)
Next K
Print b(K)
Dim a(4) As Integer, b(4) As Integer
For K = 0 To 2
a(K + 1) = Val(InputBox("请输入数据"))
b(3 - K) = a(K + 1)
Next K
Print b(K)
- A、 0
- B、 3
- C、 5
- D、 1
参考答案: