If you experience an Mac OS X program to freeze and you cannot exit it by clicking quit or using a keyboard shortcut, you can always force it to quit using the Activity Monitor.
By default Windows calculator doesn't support order of operation, to enable the functionality you need to activate the scientific view, let me show you how.