Write a program that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending when the user enters "Done", "done", or "d" for the line of text. Ex if the input is: Hello there Hey done then the output is: ereht olleH yeH I need this code in C++. I am unsure of how to solve this
Write a program that takes in a line of text as input, and outputs that line of text in reverse. The program repeats, ending when the user enters "Done", "done", or "d" for the line of text. Ex if the input is: Hello there Hey done then the output is: ereht olleH yeH I need this code in C++. I am unsure of how to solve this
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
4.16 LAB: Print string in reverse
Write a
Ex if the input is:
Hello there
Hey
done
then the output is:
ereht olleH
yeH
I need this code in C++. I am unsure of how to solve this
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 2 images