Program Day_So_Giam_Dan;
Begin
Write(‘a[‘,i,’]= ‘);
End;
Readln;
End.
uses crt;
var a:array[1..30]of integer;
i,j,tam:integer;
begin
clrscr;
for i:=1 to 30 do
begin
write('A[',i,']='); readln(a[i]);
end;
for i:=1 to 29 do
for j:=i+1 to 30 do
if a[i]>a[j] then
begin
tam:=a[i];
a[i]:=a[j];
a[j]:=tam;
end;
for i:=1 to 30 do
write(a[i]:4);
readln;
end.