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)).
עברית
הגדול ביותר משלושה
החזר את הערך הגדול ביותר מתוך שלושה ערכי 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. · לחץ על הרץ כדי לראות את התוצא כאן.