Step 1: read in the values of X and Y.

Step 2: subtract Y from X.
Step 3. If the difference between the X and Y
is negative, compute R=X+Y; if zero, compute
r=2x+2y; and if positive, compute R=X*Y.

1 answer

read x,y
z = x-y
v = (x<y) ? x+y : (x>y) ? x*y : 2x+2y
Similar Questions
  1. Multi-Step Equations Unit Test12 of 1512 of 15 Items Question Fill in the spaces to solve each step of the problem 14(x+3)=5 .(2
    1. answers icon 1 answer
  2. Fill in the spaces to solve each step of the problem i(z +3) =5. (2 points)Step 1:(_ )1/4(x +3) =5(_ ). Step x+3=[ |. Step 3:
    1. answers icon 1 answer
  3. Brianna's work Gavin's workStep 1: Subtract (20×23) from 552 to get 92. Step 1: Subtract (10×23) from 552 to get 322. Step 2:
    1. answers icon 1 answer
    1. answers icon 1 answer
more similar questions