Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,28 @@
|
|||
itemCount = 20
|
||||
dim item(itemCount)
|
||||
for i = 1 to itemCount
|
||||
item(i) = int(rnd(1) * 100)
|
||||
next i
|
||||
print "Before Sort"
|
||||
for i = 1 to itemCount
|
||||
print item(i)
|
||||
next i
|
||||
print: print
|
||||
counter = itemCount
|
||||
do
|
||||
hasChanged = 0
|
||||
for i = 1 to counter - 1
|
||||
if item(i) > item(i + 1) then
|
||||
temp = item(i)
|
||||
item(i) = item(i + 1)
|
||||
item(i + 1) = temp
|
||||
hasChanged = 1
|
||||
end if
|
||||
next i
|
||||
counter =counter -1
|
||||
loop while hasChanged = 1
|
||||
print "After Sort"
|
||||
for i = 1 to itemCount
|
||||
print item(i)
|
||||
next i
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue