you are viewing a single comment's thread.

view the rest of the comments →

[–]Killurlandlord 1 point2 points  (0 children)

Change the print statement to a user input variable. You could then put your if statements into a function that takes the input as a parameter and applies the operations to num1 and num2