Largest of three · Maior de três
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.
O maior de três
Retorne o maior de três inteiros a, b e c.
Uma forma simples: comece assumindo que a é o maior, depois compare com b e com c, mantendo o valor maior a cada comparação.
Complete int max3(int a, int b, int c) to return the largest of the three integers. · Complete int max3(int a, int b, int c) para retornar o maior dos três inteiros.
Click Run to see the output here. · Clique em Executar para ver a saída aqui.