private static void PrintOutput(RootCalculation forRoot) { double resultRoot = forRoot.CalculateRoot(); Console.WriteLine($"Root is: {resultRoot}"); Console.WriteLine(forRoot.CompareToStandart(resultRoot)); }
static void Main() { RootCalculation calculation = InputValuesForCalculation(); PrintOutput(calculation); }