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 integers a, b, and c.
A simple way: start by assuming a is the largest, then compare it with b and with c, keeping the bigger value each time.
ไทย
ค่ามากที่สุดในสามจำนวน
กลับค่ามากที่สุดของสามจำนวน a, b และ c
วิธีง่าย: เริ่มต้นด้วยการสันนิษฐานว่า a เป็นค่ามากที่สุด แล้วเปรียบเทียบกับ b และกับ c, เก็บค่าที่ใหญ่กว่าทุกครั้ง
Complete int max3(int a, int b, int c) to return the largest of the three integers. · เติม int max3(int a, int b, int c) เพื่อคืนค่าตัวมากที่สุดในสามจำนวนเต็ม
Click Run to see the output here. · คลิก Run เพื่อดูผลลัพธ์ที่นี่