procedure Reverse (var a:integer);
var
r:integer;
begin
r := 0;
while a <> 0 do
r := r * 10 + a mod 10;
a := a div 10;
end;
a := r;
//функция
function Reverse (a:integer):integer;
Reverse := r;
procedure Reverse (var a:integer);
var
r:integer;
begin
r := 0;
while a <> 0 do
begin
r := r * 10 + a mod 10;
a := a div 10;
end;
a := r;
end;
//функция
function Reverse (a:integer):integer;
var
r:integer;
begin
r := 0;
while a <> 0 do
begin
r := r * 10 + a mod 10;
a := a div 10;
end;
Reverse := r;
end;