Files
compiler-explorer/examples/pascal/Max_array.pas
RabsRincon 43279a61ca Fix various points raised after code reviews
Some fixes, a great slam and then some
2017-12-09 11:19:45 +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.