' Visual Basic 2008 9.0 .NET Examples - Introduction to Arrays - Arrays : Module Exercise1Solution Sub Main() Dim count As Integer = 5 Dim upperbound As Integer = count - 1 ' Dim values(upperbound) As Integer ' Dim index As Integer For index = 0 To upperbound Console.Write("Value " & (index + 1) & " : ") values(index) = Console.ReadLine() Next ' For index = upperbound To 0 Step -1 Console.WriteLine("Element " & (index + 1) & _ " ( at index " & (index) & " ) : " & _ values(index)) Next ' Console.ReadLine() End Sub End Module ' Visit www.studyvb.com for more examples. Copyright 2003-2008 De Wolf.