Write a program that will reverse the letters in each of a sequence of words while preserving the order of the words themselves.
The input file will consist of several lines of several words. Words are contiguous stretches of printable characters delimited by white space.
The output will consist of the same lines and words as the input file. However, the letters within each word must be reversed.
範例輸入 1
I love you. You love me. We're a happy family.
範例輸出 1
I evol .uoy uoY evol .em er'eW a yppah .ylimaf
Pro 專屬功能: 查看這題在歷屆 CPE 出現過幾次 — 升級以解鎖.