HP Prime for All

English  Русский 

Syntax

RETURN expression;

Description

Exits from a function and returns the value of expression (optional).

Example

EXPORT FACTORIAL(N) BEGIN IF N==1 THEN RETURN 1; ELSE RETURN N*FACTORIAL(N-1); END; END;

RETURN — Discussion