static void Main(string[] args) { double a = EnterNumber1(); char operation = EnterOperator(); double b = EnterNumber2(); Calculation c = new Calculation(); switch (operation) { case '+': PrintResult(c.Sum(a, b).ToString()); break; case '-': PrintResult(c.Diff(a, b).ToString()); break; case '*': PrintResult(c.Multiply(a, b).ToString()); break; case '/': PrintResult(c.Division(a, b).ToString()); break; case '%': PrintResult(c.RemainderOfDivision(a, b).ToString()); break; } Console.ReadLine(); }