187 будет иметь такой вид 10111011
105. 112. 119. 126. 133. 140. 147. 154. 161. 168. 175. 182. 189. 196.
Const n=10;
Var a:array[1..n] of integer;
i,k,j:integer;
Begin
Randomize;
For i:=1 to n do
Begin
A[i]:=Random(10);
Write(a[i],' ');
end;
Writeln;
For i:=1 to n do
Begin
If a[i] mod 3=0 then
Write(a[i],' ');
end;
for i:=1 to n-1 do
for j:=1 to n-i do
begin
if (a[j] > a[j+1]) then
begin
k:= a[j];
a[j] := a[j+1];
a[j+1] := k;
end;
end;
writeln;
for i:=1 to n do
write(a[i],' ');
readln;
<span> end.</span>
Dim i As Integer, sum As Single, sr As Single, max As SingleDim k(10) As Single, q As IntegerDim zRandomizeFor i = 0 To 10k(i) = Rnd() * 30 - 10sum = sum + k(i)Cells(i + 1, 1) = Round(k(i), 2)If max < k(i) Thenmax = k(i)q = iEnd IfNextCells(i + 1, 1) = "max = " & maxsr = sum / 10k(q) = sri = 0For Each z In kCells(i + 1, 2) = Round(z, 2)i = i + 1NextCells(i + 1, 2) = dCells(i + 1, 2) = "sr = " & sr