示例#1
0
        private static void PrintOutput(RootCalculation forRoot)
        {
            double resultRoot = forRoot.CalculateRoot();

            Console.WriteLine($"Root is: {resultRoot}");
            Console.WriteLine(forRoot.CompareToStandart(resultRoot));
        }
示例#2
0
        static void Main()
        {
            RootCalculation calculation = InputValuesForCalculation();

            PrintOutput(calculation);
        }