Skip to content

Square a number · ⁨求平方⁩

English

Square a number

Return n * n. Java is strict about types, so square is declared to return an int and your value must match.

中文

求平方

返回 n * n。Java 对类型很严格,所以 square 声明为返回 int,你返回的值必须匹配。

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

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