program bai1;
uses crt;
var n,i: integer;
a: array[1..100] of integer;
begin
clrscr;
write('nhap so n ='); readln(n);
for i:= 1 to n do
begin
write('nhap a[',i,'] ='); readln(a[i]);
end;
for i:= n downto 1 do write(a[i] , ' ');
readln;
end.
uses crt;
var n,i: integer;
a: array[1..100] of integer;
begin
clrscr;
write('nhap so n ='); readln(n);
for i:= 1 to n do
begin
write('a[',i,']='); readln(a[i]);
end;
{--------------xuat-day-binh-thuong--------------}
for i:=1 to n do write(a[i]:4);
{----------------xuat-day-dao-nguoc-------------}
writeln('day so dao nguoc la: ');
for i:= n downto 1 do write(a[i] , ' ');
readln;
end.