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;{$MODE DELPHI}function square(x: Integer): Integer;begin square := x * x;end;begin writeln(square(5));end.