设执行以下程序段时依次输入1、3、5,执行结果为_____.Dim a(4) As Integer Dim b(4) As Integer For K =0 To 2a(K+1) =Val(InputBox(“请输入数据:"))b(3-K) =a(K+1)Next KPrint b(K) a) 1 b) 3 \x05 c) 5 d) 0 但是我不懂这里k怎

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/27 14:19:41
设执行以下程序段时依次输入1、3、5,执行结果为_____.Dima(4)AsIntegerDimb(4)AsIntegerForK=0To2a(K+1)=Val(InputBox(“请输入数据:")

设执行以下程序段时依次输入1、3、5,执行结果为_____.Dim a(4) As Integer Dim b(4) As Integer For K =0 To 2a(K+1) =Val(InputBox(“请输入数据:"))b(3-K) =a(K+1)Next KPrint b(K) a) 1 b) 3 \x05 c) 5 d) 0 但是我不懂这里k怎
设执行以下程序段时依次输入1、3、5,执行结果为_____.Dim a(4) As Integer Dim 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) 1 b) 3 \x05 c) 5 d) 0
但是我不懂这里k怎么就k=3?上面不是写着k=0 to

设执行以下程序段时依次输入1、3、5,执行结果为_____.Dim a(4) As Integer Dim b(4) As Integer For K =0 To 2a(K+1) =Val(InputBox(“请输入数据:"))b(3-K) =a(K+1)Next KPrint b(K) a) 1 b) 3 \x05 c) 5 d) 0 但是我不懂这里k怎
循环式0 到 2
跳出循环的时候,不就是 3 了吗