Main Class
Our main class only contains the input and output methods. Don't forget to perform 4P here.
static void Main(string[] args)
{
// array initialization
int[] arraySearch = { 1, 2, 3, 4, 5, 6, 7, 8 };
// target input
int target = 6;
// output from binarySearch function
Console.WriteLine(binarySearch(arraySearch, target));
}