展开全部
Private Sub Form_Click()
Dim arry(20) As Integer
Dim str1 As String
For i = 0 To 19
str1 = "请输入第" + Str(i) + "个值"
arry(i) = Val(InputBox(str1, "输入值"))
Next i
For i = 0 To 19
Print "下标为"; i; "你输入的值为"; arry(i)
Print
Next i
End Sub
把这个贴到你的代码上,我自己写的,要给分哦。
Dim arry(20) As Integer
Dim str1 As String
For i = 0 To 19
str1 = "请输入第" + Str(i) + "个值"
arry(i) = Val(InputBox(str1, "输入值"))
Next i
For i = 0 To 19
Print "下标为"; i; "你输入的值为"; arry(i)
Next i
End Sub
把这个贴到你的代码上,我自己写的,要给分哦。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
代码如下:
Private Sub Form_Click()
Dim arry(20) As Integer
Dim str1 As String
For index = 1 To 20
str1 = "请输入第" + index + "个值"
arry(index - 1) = Val(InputBox(str1, "输入值"))
Next index
For index = 0 To 19
Print "下标为" + index + "你输入的值为"+ arry(index)
Print
Next index
End Sub
Private Sub Form_Click()
Dim arry(20) As Integer
Dim str1 As String
For index = 1 To 20
str1 = "请输入第" + index + "个值"
arry(index - 1) = Val(InputBox(str1, "输入值"))
Next index
For index = 0 To 19
Print "下标为" + index + "你输入的值为"+ arry(index)
Next index
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Form_Click()
Dim a(1 To 20), i As Integer, j As Integer
For i = 1 To 20
a(i) = InputBox("")
Next i
For j = 1 To 20
Print "a(" & j & ")=" & a(j)
Next j
End Sub
Dim a(1 To 20), i As Integer, j As Integer
For i = 1 To 20
a(i) = InputBox("")
Next i
For j = 1 To 20
Print "a(" & j & ")=" & a(j)
Next j
End Sub
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询