Largest of three · El mayor de tres
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.
El mayor de tres
Devuelve el valor más grande entre tres enteros a, b y c.
Una forma sencilla: comienza asumiendo que a es el mayor, luego compáralo con b y con c, conservando el valor mayor en cada comparación.
Complete int max3(int a, int b, int c) to return the largest of the three integers. · Completa int max3(int a, int b, int c) para que devuelva el entero más grande de los tres.
Click Run to see the output here. · Haz clic en Ejecutar para ver la salida aquí.