Skip to content

Largest of three · ⁨三个数的最大值⁩

English

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.

中文

三个数的最大值

返回三个整数 a、b、c 中最大的一个。

一个简单的办法:先假设 a 最大,然后依次和 b、c 比较,每次都保留较大的那个值。

Log in or create account · ⁨登录或创建账户⁩

IGCSE, A-Level · ⁨IGCSE、A-Level⁩ & AP · ⁨与 AP⁩