Largest of three · Số lớn nhất trong ba
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
Largest of three
Return the biggest of three int values. Math.max(a, b) gives the larger of two — nest two calls to handle three: Math.max(a, Math.max(b, c)).
Tiếng Việt
Số lớn nhất trong ba số
Trả về giá trị lớn nhất của ba int. Math.max(a, b) cho biết giá trị lớn hơn của hai số — lồng ghép hai lời gọi để xử lý ba số: Math.max(a, Math.max(b, c)).
Complete max3(int a, int b, int c) so it returns the largest of the three. Hint: Math.max takes two values. · Hoàn thành max3(int a, int b, int c) để trả về giá trị lớn nhất trong ba số. Gợi ý: Math.max nhận hai tham số.
Click Run to see the output here. · Nhấn Chạy để xem kết quả ở đây.