Skip to content · ⁨Pular para o conteúdo⁩

Functions · ⁨Funções⁩

English

A function returns one value

  • A function is like a procedure, and it also hands one value back.
  • The definition says the type of that value: RETURNS INTEGER.
  • RETURN sets the value. It is normally the last line of the function.
Português

Uma função retorna um único valor

  • Uma função é como um procedimento, e também devolve um valor.
  • A definição diz o tipo desse valor: RETURNS INTEGER.
  • RETURN define o valor. Geralmente é a última linha da função.

Handout · ⁨Material de apoio⁩

Log in or create account · ⁨Entrar ou criar conta⁩

IGCSE, A-Level & AP