Computer Science, asked by mohanrajhiq, 1 day ago

Convert the following if-else to a single conditional statement. (1) if(qty>=20) order=max+5; else oder= max;​

Answers

Answered by rachitagarwal2008
0

Answer:

order = max;

if(qty>=20) order =order + 5;

Explanation:

Because we are using max in both conditions we can set the value of order as max first and then if qty>=20 then we'll add 5 to it.

Please mark this as brainliest

Similar questions