Largest of three
このページには最新のブラウザ(SharedArrayBuffer対応)が必要です。Chrome、Edge、Firefox、Safariを最新バージョンに更新してください。
3つの最大値
3つの整数 a、b、c の中で最大のものを返してください。
簡単な方法:最初に a が最大だと仮定し、次に b と c と比較して、毎回大きい方を維持します。
難易度 2/5 · 140 コイン + 今日初回達成時の小ボーナス
Complete int max3(int a, int b, int c) to return the largest of the three integers.
実行ボタンをクリックして出力を確認してください。