Question: The variables x and y refer to numbers.
Write a code segment that prompts the user for an arithmetic operator and prints the value abstained by applying that operator to x and y.
You need to prepare a program that prints the value abstained by the given operators.