Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
10
Task/Reverse-a-string/EasyLang/reverse-a-string.easy
Normal file
10
Task/Reverse-a-string/EasyLang/reverse-a-string.easy
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
proc reverse . s$ .
|
||||
a$[] = strchars s$
|
||||
for i = 1 to len a$[] div 2
|
||||
swap a$[i] a$[len a$[] - i + 1]
|
||||
.
|
||||
s$ = strjoin a$[]
|
||||
.
|
||||
s$ = "hello"
|
||||
call reverse s$
|
||||
print s$
|
||||
Loading…
Add table
Add a link
Reference in a new issue