program AssignMultipleValuesToMultiple;
procedure AssignValues(var w, x, y, z: Integer; val1, val2, val3, val4: Integer);
begin
w := val1;
x := val2;
y := val3;
z := val4;
end;
var
a, b, c, d: Integer;
begin
AssignValues(a, b, c, d, 1, 2, 3, 4);
WriteLn('Values: ', a:2, ' | ', b:2, ' | ', c:2, ' | ', d:2);
end.
(*
run:
Values: 1 | 2 | 3 | 4
*)