#K4686. Reverse Words in a Sentence
Reverse Words in a Sentence
Reverse Words in a Sentence
You are given a sentence containing English words separated by spaces. Your task is to reverse the letters of each word while keeping the word order unchanged.
Input Format: The input consists of a single line of text, read from standard input.
Output Format: Print the modified sentence to standard output, where each word appears with its letters reversed.
Note: Words are defined as sequences of characters separated by whitespace.
Example:
Input: Hello World Output: olleH dlroW
The solution should handle punctuation and mixed cases appropriately.
inputFormat
The input is provided via standard input and consists of one line containing a sentence.
outputFormat
The output should be printed to standard output and must be the given sentence with each word's letters reversed.
## sampleHello
olleH