uses crt;
var n:longint;
st:string;
i:integer;
begin
clrscr;
write('Nhap n='); readln(n);
str(n,st);
for i:=length(st) downto 1 do
write(st[i]);
readln;
end.
Var n,t:longint;
Begin
Write('Nhap so can in ');readln(n);
Write('So viet nguoc lai la: ');
If n < 10 then write(n)
Else
While n > 10 do
Begin
t:=n mod 10;
Write(t);
n:=n div 10;
End;
Write(n);
Readln;
End.