Var
a: array [1..10] of integer;
i: byte;
begin
randomize;
writeln(' *** Исходный массив ***');
for i := 1 to 10 do
begin
a[i] := random(101) - 50;
write(a[i], ' ');
end;
writeln(#13+' *** Измененный массив ***');
for i := 1 to 10 do
begin
if a[i] < 0 then a[i] := 0;
write(a[i], ' ');
end;
end.