Question #145315

Rewrite the following expressions using an if...else statement. (Assume
that all variables are declared properly.)
(fuel >= 10) ? drive = 150 : drive = 30;

Expert's answer

if (fuel >= 10) {
	drive = 150;
} else {
	drive = 30;
}

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