VB_0005_Array3





Module Module1

    Sub Main()

        ' For writing lengthy texts " & _ "

        Dim myText As String = "MATHI xxxxxxxxxxxxxxxxxx" & _
                                         "xxxxxxxxxxxxxx.SURAJ"
        Dim charArray() As Char = myText.ToCharArray()
        Array.Reverse(charArray)

        For Each mychar As Char In charArray

            ' just use "Write" to get single line output

            Console.Write(mychar)
        Next
        Console.ReadLine()

    End Sub

End Module







Result:

JARUS.xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx IHTAM

Comments

Popular posts from this blog

VB_0002_Variable3