Example #1
0
        static void Main(string[] args)
        {
            Console.WriteLine("Enter int values");
            string inputString = Console.ReadLine();

            int[] inputValues = ParseIntArray(inputString);
            Console.WriteLine(ClosestToZero.Calculate(inputValues));
            Console.ReadKey();
        }
 private int getResult(int[] inputValues)
 {
     return(ClosestToZero.Calculate(inputValues));
 }