Largest of three · 3つの数の最大値
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)).
日本語
3つの最大値
3つの int 値の中で最大のものを返します。Math.max(a, b) は2つの値の中から大きい方を返すので、3つを扱うために2回の呼び出しをネストします: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) を完成させて3つの値の中から最大値を返してください。ヒント: Math.max は2つの値を取ります。
Click Run to see the output here. · 実行ボタンをクリックして出力を確認してください。