Given three integers X, Y, Z, determine whether it is possible to add, subtract, multiply or divide X and Y to produce Z. Only one operation may be used to produce Z.
Write a Python program which accepts inputs X, Y, Z from the user and compute whether it is possible to add, subtract, multiply or divide X and Y to produce Z. Y will not be zero.
There will be 3 inputs
The program should print a single line of output. If it is possible to add, subtract, multiply or divide X and Y to produce Z, print out the string 'yay'. If not, print out the string 'nay’
Function Input Argument(s):
(3, 2, 6)
Function Return Value:
"yay”
Function Input Argument(s):
(3, 5, 6)