dim list() as integer = {1, 2, 3, 4, 5, 6, 7, 8, 9, 10}
dim lowerbound as integer
dim upperbound as integer
console.writeline("enter value to be searched")
searchval = console.readline()
mid =(lowerbound + upperbound) \ 2
if searchval = list(mid) then
if searchval > list(mid) then
if searchval < list(mid) then
loop until(found = true) or (lowerbound = upperbound)
console.WriteLine("search value has been found")
console.writeline("not found")