Ejemplo n.º 1
0
        static void ReverseAnArray(Homework_2 hw2)
        {
            int length = 10;

            int[]  arr, reverse;
            string arrStr, reverseArrStr;

            arr    = hw2.FillArray(length);
            arrStr = hw2.PrintArray(arr);

            reverse       = hw2.ReverseArray(arr);
            reverseArrStr = hw2.PrintArray(reverse);

            Console.WriteLine($"arr {arrStr}");
            Console.WriteLine($"reverse {reverseArrStr}");
        }