Largest of three · Le plus grand de trois
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)).
Le plus grand de trois
Retournez le plus grand de trois valeurs int. Math.max(a, b) donne le plus grand de deux — imbriquez deux appels pour traiter trois : 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. · Complétez max3(int a, int b, int c) pour qu'il retourne le plus grand des trois. Indice : Math.max prend deux valeurs.
Click Run to see the output here. · Cliquez sur Exécuter pour voir le résultat ici.