Files
compiler-explorer/examples/fpc/max_array.pas
T
2017-11-15 21:17:02 +01:00

22 lines
304 B
ObjectPascal

unit output;
interface
procedure MaxArray(var X: array of Double; const Y: array of Double);
implementation
procedure MaxArray(var X: array of Double; const Y: array of Double);
var
I: Integer;
begin
for I := 0 to 32767 do
begin
if (Y[I] > X[I]) then
X[I] := Y[I];
end;
end;
end.