Search across blog, articles, projects, courses, and community posts
Read one line of text. Print it reversed (characters in the opposite order).
Example
Input: hello
Output: olleh
The line has 1 to 1000 characters. No trailing spaces.
hello
olleh
racecar
racecar