The smaller one · 小さい方を選ぶ
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
The smaller one
Return the smaller value. An if can compare them: if a < b, return a, else return b.
日本語
小さい方
小さい値を返してください。if で比較できます:a < b ならば a を返し、そうでなければ b を返します。
Complete min2(int a, int b): return the smaller of a and b. · min2(int a, int b) を完成させて a と b の小さい方を返します。
Click Run to see the output here. · 実行ボタンをクリックして出力を確認してください。