static void Main(string[] args) { string n; Array myArray; int result; Console.Write("Enter an integer number: "); n = Console.ReadLine(); LeftMinMax lmm = new LeftMinMax(); myArray = lmm.TransferIntToArray(n); result = lmm.MinMax(myArray); Console.ReadKey(); }