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. · اضغط تشغيل لرؤية المخرجات هنا.