Sorting algorithms/Insertion sort: Difference between revisions

Content added Content deleted
imported>Lacika7
Line 1,536: Line 1,536:
</pre>
</pre>


==={{header|GWBASIC}}===
==={{header|GW-BASIC}}===
{{works with|BASICA}}
{{works with|BASICA}}
{{works with|QBASIC/QUICKBASIC}}
{{works with|QBasic}}
{{works with|VBDOS}}
{{works with|QuickBASIC}}
{{works with|VB-DOS}}


Sorts N integers in an array a() with the Insertion sort
Sorts N integers in an array a() with the Insertion sort
Line 1,578: Line 1,579:
</syntaxhighlight>
</syntaxhighlight>
{{out}}
{{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:
Unsorted list:
Line 1,587: Line 1,587:
3 5 11 15 15 26 28 31 34 36 47 48 58 61 68 69 73 79 86 100
3 5 11 15 15 26 28 31 34 36 47 48 58 61 68 69 73 79 86 100


End of program execution.
End of program execution.</pre>
</pre>



==={{header|ZX BASIC}}===
==={{header|ZX BASIC}}===