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 int min2(int a, int b): return the smaller of a and b. · 完成 int min2(int a, int b):返回 a 和 b 中较小的那个。
Click Run to see the output here. · 点击“运行”查看此处输出。