Largest of three
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version.
Largest of three
Return the biggest of three int values. Math.max(a, b) gives the larger of two — nest two calls to handle three: Math.max(a, Math.max(b, c)).
Complete max3(int a, int b, int c) so it returns the largest of the three. Hint: Math.max takes two values.
Click Run to see the output here.