0% found this document useful (0 votes)
4 views1 page

Simple Array Input and Display in VB.NET

The document contains a Visual Basic program that prompts the user to input four values into an array. It then asks for a row number to display the corresponding value from the array. The program adjusts for zero-based indexing before outputting the value to the console.

Uploaded by

tmassive1
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
4 views1 page

Simple Array Input and Display in VB.NET

The document contains a Visual Basic program that prompts the user to input four values into an array. It then asks for a row number to display the corresponding value from the array. The program adjusts for zero-based indexing before outputting the value to the console.

Uploaded by

tmassive1
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

Module Module1

Sub Main()
Dim num(4), Index As Integer
[Link]("Enter the values to store in the Array")
For Index = 0 To 3
num(Index) = [Link]()
Next
Dim row As Integer
[Link]("Enter the row number you want to see.")
row = [Link]
row = row - 1
[Link]("The value on the row you entered = " & num(row))
[Link]()
End Sub

End Module

You might also like