create an array (26) and then use for loop to:
1. assign to its elements the English letters from A to Z.
2. print the letters on a Message boxes.
Module Module1
  Sub Main()
    'create an array (26) and then use for loop to:
    Dim englishLetters(25)
    '1. assign to its elements the English letters from A to Z.
    Dim letter As Char = "A"
    For i As Integer = 0 To 25
      englishLetters(i) = letter
      letter = Convert.ToChar(Convert.ToUInt16(letter) + 1)
    Next
    '2. print the letters on a Message boxes.
    For i As Integer = 0 To 25
      MsgBox(englishLetters(i).ToString())
    Next
    Console.ReadLine()
  End Sub
End Module
Comments
Leave a comment