Const
N = 15;
Var
A:array[1..N]of real;
B:real;
i,j:integer;
Begin
For i:= 1 to N do
Begin
A[i]:=random(15)+2;
Write(A[i],' ')
End;
j:=0;
Repeat
j:=j+1
Until (A[j]<3)or(j=N);<br>if A[j]>=3 then
Begin
WriteLn;
WriteLn('В массиве нет элементов меньше 3')
End
else Begin
For i:= j to N do
if (A[i]>A[j])and(A[i]<3) then j:=i;<br>B:=A[j];
A[j]:=A[N-1];
A[N-1]:=B;
WriteLn;
For i:= 1 to N do
Write(A[i],' ')
End
End.