Largest of three · Le plus grand de trois
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.
Le plus grand de trois
Retournez le plus grand des trois entiers a, b et c.
Une méthode simple : commencez par supposer que a est le plus grand, puis comparez-le avec b et avec c, en gardant la plus grande valeur à chaque fois.
Complete int max3(int a, int b, int c) to return the largest of the three integers. · Complétez int max3(int a, int b, int c) pour retourner le plus grand des trois entiers.
Click Run to see the output here. · Cliquez sur Exécuter pour voir le résultat ici.