Sorting algorithms/Selection sort: Difference between revisions
Content added Content deleted
m (<lang>) |
m (Using lang tags now.) |
||
Line 50: | Line 50: | ||
{{works with|ALGOL 68G|Any - tested with release mk15-0.8b.fc9.i386}} |
{{works with|ALGOL 68G|Any - tested with release mk15-0.8b.fc9.i386}} |
||
{{works with|ELLA ALGOL 68|Any (with appropriate job cards) - tested with release 1.8.8d.fc9.i386}} |
{{works with|ELLA ALGOL 68|Any (with appropriate job cards) - tested with release 1.8.8d.fc9.i386}} |
||
<lang algol> |
|||
<pre> |
|||
MODE DATA = REF CHAR; |
MODE DATA = REF CHAR; |
||
Line 77: | Line 77: | ||
FOR i TO UPB ref data DO print(ref data[i]) OD; print(new line); |
FOR i TO UPB ref data DO print(ref data[i]) OD; print(new line); |
||
print((data)) |
print((data)) |
||
</ |
</lang> |
||
Output: |
Output: |
||
<pre> |
<pre> |
||
Line 139: | Line 139: | ||
=={{header|Forth}}== |
=={{header|Forth}}== |
||
<lang forth> |
|||
<pre> |
|||
defer less? ' < is less? |
defer less? ' < is less? |
||
Line 157: | Line 157: | ||
array 10 selection |
array 10 selection |
||
array 10 cells dump |
array 10 cells dump |
||
</ |
</lang> |
||
=={{header|Fortran}}== |
=={{header|Fortran}}== |