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. · לחץ על הרץ כדי לראות את התוצא כאן.