Just one quick suggestion: instead of getting the operator, and getting user input for every operator, why not get the operator, get the input, and then apply it to the operator?
eg:
get operator
get input
apply operator
print result
and the answer to your problem:
the correct form is :