const n=100;
type arr = array[1..n] of real;
{формирование массива}
procedure InArray(var a: arr; j: integer);
var i: integer;
begin
randomize;
for i:=1 to j do
begin
a[i]:=round(random()*1000)/100;
write(a[i],' ');
end;
writeln;
end;
var a: arr;
i,m,ind: integer;
delta,nom: real;
begin
write('n = '); readln(m);
InArray(a,m);
delta:=abs(pi-a[1]);
ind:=1;