Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- int main(){
- int quantVogais=0;
- char nome[50];
- printf("digite seu nome:");
- gets(nome);
- int i;
- for(i=0;nome[i]!='\0';i++)
- if(nome[i]=='a' || nome[i]=='e' || nome[i]=='i' || nome[i]=='o' || nome[i]=='u')
- quatVogais++;
- printf(" a quantidade de vogais sera %d",quantVogais);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment