9 lines
291 B
Rexx
9 lines
291 B
Rexx
|
|
/*REXX program to reverse a string (and show before and after strings).*/
|
||
|
|
|
||
|
|
string1 = 'A man, a plan, a canal, Panama!'
|
||
|
|
string2 = reverse(string1)
|
||
|
|
|
||
|
|
say ' original string: ' string1
|
||
|
|
say ' reversed string: ' string2
|
||
|
|
/*stick a fork in it, we're done.*/
|