Question: Use C++ to answer. 1. Description: Given a string S , output the reverse of S . 2. Input : The input consists of one

Use C++ to answer.

1. Description: Given a string S, output the reverse of S.

2. Input :

The input consists of one line. Each line is a string S with length <= 10000.

The string S does not contain any spaces.

3. Output: Output the reverse of S.

4. Sample Input: abbbbaaabbaba

Sample Output: ababbaaabbbba

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!