5 questions0m 0s
Learn the skill
Our pseudocode defines FUNCTION addTwo(x): RETURN x + 2; END. A call supplies an input and receives the returned result. Defining a function does not call it. RETURN passes a value back; SHOW displays a value.
Worked example
SET answer TO addTwo(4) stores 6 in answer. The parameter x receives 4 for that call. Nothing is displayed until a SHOW instruction runs.