Largest of three
此页面需较新浏览器(支持 SharedArrayBuffer)。请升级 Chrome、Edge、Firefox 或 Safari 至最新版本。
三者中的最大值
返回三个 int 值中最大的一个。Math.max(a, b) 返回两者中较大的 —— 嵌套两次调用即可处理三个:Math.max(a, Math.max(b, c))。
难度 1/5 · 今日首次完成可获 100 金币及少量额外奖励
Complete max3(int a, int b, int c) so it returns the largest of the three. Hint: Math.max takes two values.
点击“运行”查看此处输出。