Question #114414

convert to ternary operator if(x<=2) y=2.5*x+3 else y=5*x+4

Expert's answer

x<=2?y = 2.5*x+3:y = 5*x+4


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

LATEST TUTORIALS
APPROVED BY CLIENTS