Hi!
I dont understand arrays very much. Im trying to create an array of up to 100 positive numbers with the use of -1 to stop entering if the user needs an array containing less than 100 elements.
Ive seen them declared many ways but since im want to create an array of up to 100, Im using the following:
Am I declaring it correctly? When I run the program, I cant input a number. Am I missing a step?
I dont understand arrays very much. Im trying to create an array of up to 100 positive numbers with the use of -1 to stop entering if the user needs an array containing less than 100 elements.
Ive seen them declared many ways but since im want to create an array of up to 100, Im using the following:
Code:
Dim array as integer()
Array=new integer (0 to 100) {}
Console.Write("Please enter the value (-1 to stop)")
For i As Integer = 0 To array.GetUpperBound(0)
Next
Comment