Parameters of Main, Reverse Learn programming Visual Basic (VB.net)

Lesson:

Functions


Exercise:

Parameters of Main, Reverse 41


Objetive:

Create a program named "reverse", which receives several words in the command line and displays them in reverse order, as in this example:

reverse one two three
three two one


Code:

Imports System
Public Class exercise115
    Public Shared Sub Main(ByVal args As String())
        For i As Integer = args.Length - 1 To 0
            Console.Write(args(i))
            Console.Write(" ")
        Next
    End Sub
End Class