Skip to content

Largest of three

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.

Log in or create account

IGCSE & A-Level