#C27. Capitalize Words
Capitalize Words
Capitalize Words
Given an input string, convert it so that the first letter of each word is uppercase and all the remaining letters are in lowercase. A word is defined as a sequence of characters separated by one or more spaces. For example, the string "hello world" should be transformed to "Hello World".
This problem tests your ability to manipulate strings and handle edge cases such as empty strings. Make sure your solution reads from standard input (stdin) and writes the result to standard output (stdout).
inputFormat
The input consists of a single line containing a string provided via standard input (stdin). The string may be empty or contain multiple words separated by spaces.
outputFormat
Output a single line containing the transformed string where the first letter of each word is in uppercase and the rest are in lowercase.
## samplehello
Hello