11869 - Word Scramble   

Description

Write a program that will reverse the letters in each of a sequence of words while preserving the order of the words themselves.

We suggest you to use fgets() (gets() cannot be used safely and gets_s() is optional in C11)

Hint: the usage of fgets() in this problem would look like  while(fgets(string, n , stdin) != NULL)

Input

The input file will consist of several lines of several words. Words are contiguous stretches of printable characters delimited by white space.

The length of each line is smaller than 350.

Output

The output will consist of the same lines and words as the input file. However, the letters within each word must be reversed.

If the input is "I love     you.", the output should be "I evol     .uoy"

Sample Input  Download

Sample Output  Download

Tags




Discuss