public static void Main()
int[] arr = new int[] {1,2,3,4,5};
bool isEven = ((arr.Length % 2) == 0);
int midIndex = arr.Length / 2;
Console.Write(i + " : ");
if (arr[midIndex] == i || (isEven && ((arr[midIndex] - 1) == i)))
Console.WriteLine("n (" + (posY) + ")");
else if (arr[midIndex] < i)
Console.WriteLine("+ (" + ((j * 150) - (posY - 100)) + ")");
Console.WriteLine("- (" + ((j * 150) - (posY - 100)) + ")");