static void Main(string[] args) { Console.WriteLine("Enter expression: "); string temp = Console.ReadLine(); Calculator impl = new Calculator(); try { double result = impl.evaluateExpression(temp); Console.WriteLine(temp + " ==> " + result); System.Threading.Thread.Sleep(2000); } catch (Exception e) { Console.WriteLine(e.Message.ToString()); Console.ReadLine(); } }