Question #152294

Omar plays a game with his brother Ali, Omar read 4 positive numbers. Ali must find the largest difference between numbers.


Can you help Ali to find the result?

You should use max() predefined function.

Expert's answer

Assuming there are 10 numbers in the game starting from 0.

If Omar's read 4 positive numbers say 1,2,3,4. Then difference between the no read by Alice. So Alice can read either 4-1, 4-2,4-3,4-4 means 3,2,1,0.

Max of( 4-1,4-2,4-3,4-4) means 3


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