Given two numbers X and Y. Write a program to determine the difference between X and Y. If X – Y is negative, compute R = X + Y; if X – Y is zero, compute R = 2X + 2Y; and if X – Y is positive, compute R = X*Y. Print out the value of X, Y, and R.
1
Expert's answer
2020-11-16T00:08:23-0500
Dear rmay, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Comments
Leave a comment