static void Main(string[] args) { Stack stack = new StackOnList(); Console.WriteLine("Write an expression in postfix form:"); string str = Console.ReadLine(); StackMachine(stack, str); Console.Write("Result: " + stack.Top()); Console.ReadLine(); }