Data update
This commit is contained in:
parent
8e4e15fa56
commit
72eb4943cb
1853 changed files with 35514 additions and 9441 deletions
11
Task/Reverse-a-string/Atari-BASIC/reverse-a-string.basic
Normal file
11
Task/Reverse-a-string/Atari-BASIC/reverse-a-string.basic
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
10 DIM S$(4)
|
||||
20 S$="asdf"
|
||||
30 GOSUB 100
|
||||
40 PRINT S$,REV$
|
||||
50 END
|
||||
100 X=LEN(S$)
|
||||
110 DIM REV$(X)
|
||||
120 FOR I=1 TO X
|
||||
130 REV$(I)=S$(X-I+1)
|
||||
140 NEXT I
|
||||
150 RETURN
|
||||
Loading…
Add table
Add a link
Reference in a new issue