Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main() {
- char string[1000];
- int i, tamanho;
- printf("Digite a string");
- fgets(string, 1000, stdin);
- tamanho=strlen(string);
- string[0]-=32;
- for(i=0; i<=tamanho; i++){
- if(string[i]==' '){
- string[i+1]-= 32;
- }
- }
- printf("%s", string);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement