working for multiple operators on two numbers