//--------------دریافت تعداد عنصر آرایه و پر کردن آن
            Console.WriteLine("Hi,Please enter the number of array elements:");
            int n = Convert.ToInt32(Console.ReadLine());
            int[] Array = new int[n];
            Console.WriteLine("-----------------------");

            for (int z = 0; z < Array.Length; z++)
            {
                Array[z] = Convert.ToInt32(Console.ReadLine());