Free Pascal编程!!!
发布网友
发布时间:2024-09-28 05:23
我来回答
共1个回答
热心网友
时间:2024-10-20 18:15
var a:array[1..20] of integer;
b,c,d,n:integer;
begin
read(n);
for b:=1 to n do
read(a[b]);
for b:=1 to n do
for c:=b+1 to n do
if a[c]<a[b] then
begin
d:=a[c];
a[c]:=a[b];
a[b]:=d;
end;
for b:=1 to n do
write(a[b]:6);
end.