1.
var a:array [1..10] of integer;
i,v:integer;
begin
for i:=1 to 10 do
begin
a[i]:=random(17);
write(a[i],' ')
end;
writeln;
v:=a[1];
for i:=2 to 10 do
if a[i]>v then v:=a[i];
writeln(v)
end.
2.
var a:array [1..10] of integer;
i,n,k:integer;
begin
for i:=1 to 10 do
begin
a[i]:=random(5000)+15000;
write(a[i],' ')
end;
writeln;
n:=a[1];
for i:=2 to 10 do
if a[i]for i:=1 to 10 do
begin
if a[i]=n then
begin
k:=i;
a[i]:=n*3;
end;
write(a[i],' ')
end;
writeln;
writeln(k)
end.