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.
한국어
세 개 중 가장 큰 것(largest of three)
세 정수 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. · 출력을 보려면 '실행'을 클릭하세요.