Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- int main()
- {
- int i,size = 0;
- char name[40];
- printf("Entre com o seu nome :\n");
- gets(name);
- while (name[i++] != '\0')
- {
- if (name[i] != ' ')
- {
- size++;
- }
- }
- printf("%d letras!\n",size);
- }
Advertisement
Add Comment
Please, Sign In to add comment