Version
Example: Reverse a string
- Contents
- Description
- Source
- Solution
- Output
Description
Reverse the order of the characters in a give string of characters.
Source
Problem description from Rosetta Code
Solution
class APPLICATION create make feature make -- Demonstrate string reversal. do my_string := "Hello World!" my_string.mirror print (my_string) end my_string: STRING -- Used for reversal end
Output
!dlroW olleH
Back to Examples