public static void Main()
{int[] array= {1,2,3,4,5,6,7,9};
int product= array[index]*array[index+1];
while(index+1<array.Length)
if(product<array[index]*array[index+1])
product=array[index]*array[index+1];
Console.WriteLine("the highest product of th adjacent elements are :{0}",product);