Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int main ()
- {
- int i,cont=0;
- char nome[50];
- printf ("Digite seu nome: ");
- gets (nome);
- for (i=0;i<50;i++)
- {
- if (nome[i]==' ')
- continue;
- else if (nome[i]=='\0')
- break;
- else if (nome[i]=='a'||nome[i]=='e'||nome[i]=='i'||nome[i]=='o'||nome[i]=='u')
- cont++;
- else
- continue;
- }
- printf ("o nome '%s' tem %d vogais.\n\n",nome,cont);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment