题目内容:
以下程序段的输出结果为
Dim 1,a(10),p(3)
k=5
For i=0 To 10
a(i)=i
Next i
For i=0 To 2
P(i)=a(i*(i+1))
Next i
For i=0 To 2
k=k+P(i)*2
Next i
Print k
A.20
B.21
C.56
D.32
参考答案:
答案解析:
以下程序段的输出结果为
Dim 1,a(10),p(3)
k=5
For i=0 To 10
a(i)=i
Next i
For i=0 To 2
P(i)=a(i*(i+1))
Next i
For i=0 To 2
k=k+P(i)*2
Next i
Print k
A.20
B.21
C.56
D.32