Jump to content

Sorting algorithms/Insertion sort: Difference between revisions

m
imported>Lacika7
Line 1,536:
</pre>
 
==={{header|GWBASICGW-BASIC}}===
{{works with|BASICA}}
{{works with|QBASIC/QUICKBASICQBasic}}
{{works with|VBDOSQuickBASIC}}
{{works with|VB-DOS}}
 
Sorts N integers in an array a() with the Insertion sort
Line 1,578 ⟶ 1,579:
</syntaxhighlight>
{{out}}
<pre>This program sorts by Insertion a list of randomly generated numbers.
<pre>
This program sorts by Insertion a list of randomly generated numbers.
 
Unsorted list:
Line 1,587:
3 5 11 15 15 26 28 31 34 36 47 48 58 61 68 69 73 79 86 100
 
End of program execution.</pre>
</pre>
 
 
==={{header|ZX BASIC}}===
2,156

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.