var a:array[1..20] of integer;
i,k: integer;
begin
for i:=1 to 20 do
a[i]:=random(51)+25;
write (a[i],' ')
end;
writeln;
if a[i]=50 then
writeln (i,' элемент = ',a[i]);
k:=k+1
if k=0 then writeln ('Такого нет')
end.
var a:array[1..20] of integer;
i,k: integer;
begin
for i:=1 to 20 do
begin
a[i]:=random(51)+25;
write (a[i],' ')
end;
writeln;
for i:=1 to 20 do
if a[i]=50 then
begin
writeln (i,' элемент = ',a[i]);
k:=k+1
end;
if k=0 then writeln ('Такого нет')
end.