Largest of three · Terbesar bagi tiga nombor
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.
Terbesar dari tiga
Kembalikan nilai terbesar dari tiga bilangan bulat a, b, dan c.
Cara sederhana: mulai dengan berasumsi a adalah yang terbesar, lalu bandingkan dengan b dan dengan c, simpan nilai yang lebih besar setiap kali.
Complete int max3(int a, int b, int c) to return the largest of the three integers. · Selesaikan int max3(int a, int b, int c) untuk mengembalikan nilai terbesar bagi tiga integer tersebut.
Click Run to see the output here. · Klik Jalankan untuk melihat output di sini.