Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main()
- {
- int i;
- char name[100];
- printf("Entre com uma frase :\n");
- gets(name);
- for (i = 0; i < strlen(name); i++)
- {
- if (name[i] != ' ')
- printf("%c",name[i]-32);
- else
- printf("%c",name[i]);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment