The smaller one · הקטן מביניהם
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
The smaller one
Return the smaller value. An if can compare them: if a < b, return a, else return b.
עברית
המספר הקטן יותר
החזר את הערך הקטן יותר. if יכול להשוות ביניהם: אם a < b, החזר a, אחרת החזר b.
Complete int min2(int a, int b): return the smaller of a and b. · השלם את פונקציית int min2(int a, int b): החזר את הערך הקטן ביותר בין a לבין b.
Click Run to see the output here. · לחץ על הרץ כדי לראות את התוצא כאן.