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)
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.
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"