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 integers a, b, and c.
A simple way: start by assuming a is the largest, then compare it with b and with c, keeping the bigger value each time.
日本語
3つの最大値
3つの整数 a、b、c の中で最大のものを返してください。
簡単な方法:最初に a が最大だと仮定し、次に b と c と比較して、毎回大きい方を維持します。
Complete int max3(int a, int b, int c) to return the largest of the three integers. · int max3(int a, int b, int c) を完成させて3つの整数の最大値を返します。
Click Run to see the output here. · 実行ボタンをクリックして出力を確認してください。