Actually, this will create an array with 102 elements, ranging from
0 to 101. If you wanted 100 elements, you would declare myArray
as
Dim myArray(99) As Integer
You can use a For-Each loop to loop through an array, so just
do that, take the user's input, convert it to an Integer, and move
on.
Dim myArray(99) As Integer
Dim grade As Integer
For Each grade in myArray
grade = Convert.ToInt32(InputBox("Grade?"))
Next
Keep in mind this loop doesn't account for when a user enters a
value that is not an integer. You should also create your own
form for inputting values, as InputBox is one of those old VB6
functions that should be avoided in .NET.