The smaller one · Số nhỏ hơn
This page needs a recent browser (with SharedArrayBuffer support). Please update Chrome, Edge, Firefox or Safari to the latest version. · Trang này cần trình duyệt gần đây (hỗ trợ SharedArrayBuffer). Vui lòng cập nhật Chrome, Edge, Firefox hoặc Safari lên phiên bản mới nhất.
English
The smaller one
Return the smaller value. An if can compare them: if a < b, return a, else return b.
Tiếng Việt
Giá trị nhỏ hơn
Trả về giá trị nhỏ hơn. Một if có thể so sánh chúng: nếu a < b, trả về a, ngược lại trả về b.
Complete min2(int a, int b): return the smaller of a and b. · Hoàn thành min2(int a, int b): trả về số nhỏ hơn giữa a và b.
Click Run to see the output here. · Nhấn Chạy để xem kết quả ở đây.