Skip to content

Your first method · ⁨你的第一个方法⁩

English

Your first method

Now write a method. Don't write main — the checker calls your method with several inputs and checks what you return. Complete twice so it returns n times two.

中文

你的第一个方法

现在来写一个方法。不要写 main —— 检查器会用多个输入调用你的方法,并检查你 return 的结果。完成 twice,让它返回 n 的两倍。

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

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