Question: Print string in reverse Write a program that takes in a line of text as input, and outputs that line of text in reverse. Ex:

Print string in reverse
Write a program that takes in a line of text as input, and outputs that line of text in reverse.
Ex: If the input is:
Hello there
Hey
quit
the output is:
ereht olleH
yeH
The program repeats, ending when the user enters "Quit", "quit", or "q" for the line of text.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!