Var i,n,k: integer; a: array[1..100] of integer; begin write('n = '); readln(n); randomize; writeln('исходный массив:'); for i:=1 to n do begin a[i]:=random(100)-50; write(a[i],' '); end; writeln; writeln('новый массив:'); for i:=1 to n div 2 do begin k:=a[i]; a[i]:=a[n-i+1]; a[n-i+1]:=k; end; for i:=1 to n do write(a[i],' '); end.