CASE and REVERSE


Submit solution

Points: 10 (partial)
Time limit: 2.0s
Memory limit: 64M

Author:
Problem type
Allowed languages
C++

Task

To reverse all words of a sentence and the sentence itself after changing case of all the characters

Sample Input 1

c programming CLASS

Sample Output 1

The string after changing case of each character: C PROGRAMMING class

The string after reversing each word and string: ssalc GNIMMARGORP C

Sample input 2

Interleaving Of 2 Given STRINGS

Sample output 2

The string after changing case of each character: iNTERLEAVING oF 2 gIVEN strings

The string after reversing each word and string: sgnirts NEVIg 2 Fo GNIVAELRETNi


Comments

There are no comments at the moment.