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