program z1;
uses Crt;
var a: array [1..10] of real;
i:integer;
begin
clrscr;
for i:=1 to 10 do
begin
a[i]:=random(10)-1;
write (a[i],' ');
end;
for i:=1 to 10 do
begin
if a[i]>0 then a[i]:=2*a[i]
else if a[i]<0 then a[i]:=a[i]/2;<br>end;
writeln ();
for i:=1 to 10 do
write (a[i],' ');
end.