Only rescue from ZeroDivisionError
Don't loop through operators, just apply parentheses. Remove unnecessary break statements.