vb中编程题:Dim m(10) For I=1 to 5 m(I)=I*I Next I Print m(I-2)结果为多少
2个回答
展开全部
Dim m(10) As Integer
For i = 1 To 5
m(i) = i * i 'i <= 5 则执行
Next
Print m(i-2) 'i = 6
m(i-2) = m(4)
m(4) =4 * 4 = 16
结果为 16
For i = 1 To 5
m(i) = i * i 'i <= 5 则执行
Next
Print m(i-2) 'i = 6
m(i-2) = m(4)
m(4) =4 * 4 = 16
结果为 16
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询