I'm having some trouble trying to input integers into an array using visual basic. I'm very new to use visual basic (and programming in general) and I've had a look around google as well as, this website to try and find an answer however I am not finding any luck and I wanted to see if anyone could lend me a hand.
Basically what I have so far
Function inputArray()
Dim array() As Integer
Console.WriteLine("Please input how many integers you would like to add")
For i = 0 To array.Length - 1
Console.WriteLine("Please enter an integer")
Console.ReadLine()
Next
Console.WriteLine(array)
Return array
End Function
What i'm trying to achieve is to ask the user how many integers they would like to input into the array and then allow the user to make an input for the amount of integers they have chosen and to store those integers in the array.
If anyone could possibly give me an example piece of code as to how I would do this or any help at all I would really appreciate it.