procedure SortDescending(var a, b, c, d: integer);vartemp: integer;beginif a < b thenbegintemp := a;a := b;b := temp;end;
if b < c thenbegintemp := b;b := c;c := temp;end;
if c < d thenbegintemp := c;c := d;d := temp;end;
if a < b thenbegintemp := a;a := b;b := temp;end;
if a < b thenbegintemp := a;a := b;b := temp;end;end;
procedure SortDescending(var a, b, c, d: integer);
var
temp: integer;
begin
if a < b then
begin
temp := a;
a := b;
b := temp;
end;
if b < c then
begin
temp := b;
b := c;
c := temp;
end;
if c < d then
begin
temp := c;
c := d;
d := temp;
end;
if a < b then
begin
temp := a;
a := b;
b := temp;
end;
if b < c then
begin
temp := b;
b := c;
c := temp;
end;
if a < b then
begin
temp := a;
a := b;
b := temp;
end;
end;