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)).
한국어
세 개 중 가장 큰 것(largest of three)
세 int 값 중 가장 큰 값을 반환하세요. Math.max(a, b)은 두 값 중 큰 것을 주므로, 세 개의 값을 처리하려면 두 번 중첩하여 호출하세요: 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. · 출력을 보려면 '실행'을 클릭하세요.