Skip to content

Functions · ⁨函数⁩

English

A FUNCTION returns a value

  • A function works something out and hands back a value with RETURN.
  • RETURNS (in the header) states the type of value it gives back.
中文

FUNCTION 返回一个值

  • 函数(function)算出一个结果,用 RETURN 把值交回去。
  • RETURNS(在函数头里)说明它返回的值的类型。

Handout

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

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