#C40. Capitalize Words
Capitalize Words
Capitalize Words
Given a sentence, write a program that returns a new sentence in which the first letter of each word is capitalized and the rest of the letters are in lowercase. This is a common string manipulation task that ensures the text follows proper title or sentence formatting.
For example, if the input sentence is "javaScript is fun", your program should output "Javascript Is Fun".
Note: Words are defined as sequences of characters separated by whitespace.
inputFormat
The input consists of a single line read from standard input. This line is the sentence that needs to be processed.
outputFormat
Output the resulting sentence to standard output. Each word in the sentence must have its first letter in uppercase and the remaining letters in lowercase.
## samplehello world
Hello World
</p>