Largest of three · 三者中的最大值
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · 此页面需较新浏览器(支持 SharedArrayBuffer)。请升级 Chrome、Edge、Firefox 或 Safari 至最新版本。
English
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)).
中文
三者中的最大值
返回三个 int 值中最大的一个。Math.max(a, b) 返回两者中较大的 —— 嵌套两次调用即可处理三个: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. · 完成 max3(int a, int b, int c),返回三者中最大的。提示:Math.max 接受两个值。
Click Run to see the output here. · 点击“运行”查看此处输出。