Ejercicio
Matriz inversa
Objetivo
Cree un programa en Visual Basic para pedir al usuario 5 números, guárdelos en una matriz y muéstrelos en orden inverso.
Código
Imports System
Public Class exercise72
Public Shared Sub Main()
Dim numbers As Integer() = New Integer(4) {}
For i As Integer = 0 To 5 - 1
Console.Write("Number {0} = ", i + 1)
numbers(i) = Convert.ToInt32(Console.ReadLine())
Next
Console.WriteLine()
For i As Integer = 4 To 0
Console.Write("{0} ", numbers(i))
Next
End Sub
End Class