Exercise: Reverse Word
Let's have an exercise on reversing a Japanese haiku.
We'll cover the following
Problem
In this problem, you are expected to write a program that will read a string as the input. It will output a string such that the characters in every word of the input string are reversed but the order of the words is preserved.
Use the following string as the input: “emoclew ot eht evitacude mroftalp”
Get hands-on with 1400+ tech skills courses.