VB基础题,求大神解答。
Sum=0Forx=1To20Sum=Sum+xNextxMean=Sum/20执行后,Sum=、Mean=、x=。已知:数组a中各元素的内容为:a(1)=78、a(2)...
Sum = 0
For x = 1 To 20
Sum = Sum + x
Next x
Mean = Sum / 20
执行后,Sum = 、Mean = 、x = 。
已知:数组a中各元素的内容为:a(1) = 78、a(2) = 85、a(3) = 65、a(4) = 90、a(5) = 88。程序段
m = a(1): j = 1
For i = 2 To 5
If m > a(i) Then
m = a(i): j = i
End If
Next i
执行后,m = 、i = 、j = 展开
For x = 1 To 20
Sum = Sum + x
Next x
Mean = Sum / 20
执行后,Sum = 、Mean = 、x = 。
已知:数组a中各元素的内容为:a(1) = 78、a(2) = 85、a(3) = 65、a(4) = 90、a(5) = 88。程序段
m = a(1): j = 1
For i = 2 To 5
If m > a(i) Then
m = a(i): j = i
End If
Next i
执行后,m = 、i = 、j = 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询