Linear and Binary Search Program Code
Linear and Binary Search Program Code
Imports System.Console
Module Module1
Sub Main()
List(C) = ReadLine()
Next
Found = True
Else
Index = Index + 1
End If
End While
End If
ReadKey()
End Sub
End Module
Binary Search Program Code
Imports System.Console
Module Module1
Sub Main()
First = 1
Last = 5
List(C) = ReadLine()
Next
Found = True
Else
First = Mid + 1
Else
Last = Mid - 1
End If
End If
End While
WriteLine()
Else
End If
ReadKey()
End Sub
End Module