Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,15 @@
|
|||
procedure bubble_sort(var list: array of real);
|
||||
var
|
||||
i, j, n: integer;
|
||||
t: real;
|
||||
begin
|
||||
n := length(list);
|
||||
for i := n downto 2 do
|
||||
for j := 0 to i - 1 do
|
||||
if list[j] > list[j + 1] then
|
||||
begin
|
||||
t := list[j];
|
||||
list[j] := list[j + 1];
|
||||
list[j + 1] := t;
|
||||
end;
|
||||
end;
|
||||
|
|
@ -0,0 +1,4 @@
|
|||
var
|
||||
list: array[0 .. 9] of real;
|
||||
// ...
|
||||
bubble_sort(list);
|
||||
Loading…
Add table
Add a link
Reference in a new issue