Question #303469

Rewrite the following expressions using an if...else statement. (Assume that all variables are declared properly.)

a. (x < 5) ? y = 10 : y = 20;


Expert's answer

if(x < 5){
y=10;
}else{
y=20;
}

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