Ответ учителя по предмету Информатика
const n=10;
var a: array [1..n] of integer;
j,k,i,p,f:integer;
begin
for i:=1 to n do
a[i]:=random(1,10);
writeln(a);
for j:=1 to n do
for i:=1 to n-j do
begin
if a[i]>a[i+1] then
begin
swap(a[i+1],a[i]);
end;
end;
writeln(a);
end.
Похожие вопросы от пользователей
1) If they (eat) fish in the evening , they will drink a lot of water.
2) I (not/go) there if I were you.
3) If I (do) my homework , I would have played more football
4) If she (have) money , we would go to the cafe.
5) If boys (have) time,they will ride bikes.