Dim insertWord, insertLetter As String
Console.write("Enter a word to be searched: ")
insertWord = Console.ReadLine()
Console.write("Enter a letter to be searched in the word: ")
insertLetter = Console.ReadLine()
Call findLetter(insertWord, InsertLetter)
Private Sub findLetter(ByVal userWord As String, ByVal userLetter As Char)
Dim currentLetter As Char
For I as Integer = 0 To userWord.Length - 1
currentLetter = userWord.Chars(I)
If currentLetter = userLetter Then
Console.WriteLine("The letter " & userLetter & " does not appear in the word " & userword)
Console.WriteLine("The letter " & userLetter & " appears in the word " & userWord & " at index " & index)