Anonymous user
Sorting algorithms/Cocktail sort: Difference between revisions
Sorting algorithms/Cocktail sort (view source)
Revision as of 08:53, 30 December 2012
, 11 years ago→{{header|Run BASIC}}
Line 1,728:
a(i) = rnd(0) * 100
next i
' ------- sort -------
beg = 2
siz = 100
Line 1,747:
whatWay = 0 - whatWay
wend
' ------ print result --------
for i = 1 to 100
print i;" ";a(i)
|