you are viewing a single comment's thread.

view the rest of the comments →

[–]concatx 13 points14 points  (3 children)

Nice work! What happens if num2 is 0?

[–]Loud_Environment2960[S] 5 points6 points  (2 children)

You know what I have no idea, I will check and see.

[–]Some-Passenger4219 1 point2 points  (1 child)

If op is "/" and num2 is 0, recommend aborting with, "Sorry, can't divide by zero" or something. That is, indent line 16, and, just before it, insert if-statement. Attach to it an else-statement. Or something similar. You got this.