Functions
function (return value assigned to name) and procedure.
Simple enough for a 5-year-old to understand
function
The return value is assigned to the function's NAME (square := ...). It is defined before begin.
program H;function square(x: integer): integer;begin square := x * x;end;begin writeln(square(5));end.