Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,9 @@
|
|||
LOCAL t[] = { 5, 7, 1, 3, 10, 2, 9, 4, 8, 6 }
|
||||
total = 10
|
||||
WHILE total > 1
|
||||
FOR x = 0 TO total-1
|
||||
IF t[x] > t[x+1] THEN SWAP t[x], t[x+1]
|
||||
NEXT
|
||||
DECR total
|
||||
WEND
|
||||
PRINT COIL$(10, STR$(t[_-1]))
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
t$ = "Kiev Amsterdam Lima Moscow Warschau Vienna Paris Madrid Bonn Bern Rome"
|
||||
total = AMOUNT(t$)
|
||||
WHILE total > 1
|
||||
FOR x = 1 TO total-1
|
||||
IF TOKEN$(t$, x) > TOKEN$(t$, x+1) THEN t$ = EXCHANGE$(t$, x, x+1)
|
||||
NEXT
|
||||
DECR total
|
||||
WEND
|
||||
PRINT t$
|
||||
Loading…
Add table
Add a link
Reference in a new issue