Answer to Question #233964 in Visual Basic for A student

Question #233964

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.


1
Expert's answer
2021-09-06T14:14:01-0400




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

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS