Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
14
Task/Reverse-a-string/FutureBasic/reverse-a-string.basic
Normal file
14
Task/Reverse-a-string/FutureBasic/reverse-a-string.basic
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
void local fn DoIt
|
||||
CFStringRef s1 = @"asdf", s2 = @""
|
||||
long index
|
||||
for index = len(s1) - 1 to 0 step -1
|
||||
s2 = fn StringByAppendingString( s2, mid(s1,index,1) )
|
||||
next
|
||||
print s1,s2
|
||||
end fn
|
||||
|
||||
window 1
|
||||
|
||||
fn DoIt
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue