Private Sub Command1_Click()
'建立
Dim a%(), i%, n%
n = InputBox("请输入数组元素个数n值")
ReDim a(0 To n - 1)
For i = 0 To n - 1
a(i) = InputBox("请输入第" & i + 1 & "个数值")
Next i
'反序
For i = 0 To (n - 1) / 2
m = a(i)
a(i) = a(n - i - 1)
a(n - i - 1) = m
Next i
'输出
For i = 0 To n - 1
Print a(i)
Next i
End Sub