mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2025-12-27 14:04:04 -05:00
22 lines
304 B
ObjectPascal
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.
|
|
|