Largest of three · Наибольшее из трёх
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. · Нажмите Запустить, чтобы увидеть результат здесь.