program z1; var a:array [1..20] of integer; b,i:integer; begin b:=0; for i:= 1 to 20 do a[i]:=random(30)-15; for i:= 1 to 20 do write(a[i]); writeln; b:=a[6]; a[6]:=a[16]; a[16]:=b; write(a[i]); end.
program z1;
var
a:array [1..20] of integer;
b,i:integer;
begin
b:=0;
for i:= 1 to 20 do
a[i]:=random(30)-15;
for i:= 1 to 20 do
write(a[i]);
writeln;
b:=a[6];
a[6]:=a[16];
a[16]:=b;
write(a[i]);
end.