Largest of three · ตัวมากที่สุดในสามตัว
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
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)).
ไทย
ค่ามากที่สุดในสามจำนวน
คืนค่า最大值ของสาม int ค่า Math.max(a, b) ให้ค่าที่มากกว่าของสองตัว — Nest สอง call เพื่อจัดการสามตัว: 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. · เติม max3(int a, int b, int c) ให้มันกลับค่ามากที่สุดจากสามค่า ทริค: Math.max รับค่าได้สองค่า
Click Run to see the output here. · คลิก Run เพื่อดูผลลัพธ์ที่นี่