Imports System.Collections.Genericeneric
Dim lstWords as New List(Of String)()
lstWords.Add("Dragon Fruit")
lstWords.Add("Elderberry")
lstWords.Add("Grape Fruit")
Dim intMaxIndex = lstWords.Count()-1
Dim strWordtoFind = Console.ReadLine()
DO WHILE blnWordFound = False AND intMinIndex <+ intMaxIndex
intIndex = (intMinIndex + intMaxIndex) / 2
Console.WriteLine( "Inspecting index " & intIndex )
IF strWordtoFind = lstWords( intIndex ) Then
Console.WriteLine( strWordtoFind & " is word no " & intIndex + 1 & " in the list" )