Capitalize the initial letterTime
limit:2000/1000 MS (java/others) Memory limit:65536/32768 K (java/others)
Total submission (s): 32066 Accepted Submission (s): 17876
problem DescriptionEnter an English sentence and change the first letter of each word to uppercase.
InputThe input data contains multiple test instances, each of which is a line of English sentences with a length of not more than 100.
OutputPlease output the English sentences that have been rewritten as required.
Sample Input
I like ACMI want to get an accepted
Sample Output
I like AcmI want to Get a Accepted Source code:#include <stdio.h> #include <string.h># Include <stdlib.h>int main () {int i; Char str[101]; while (gets (str)) {for (I=0;i<strlen (str); i++) if (i==0| | str[i-1]== ') printf ("%c", str[i]-32); else printf ("%c", Str[i]); printf ("\ n"); } system ("Pause"); return 0;}
Capitalize the initial letter