Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main() {
- char string[1000], c=0;
- int i, tamanho;
- printf("Digite a string");
- fgets(string, 1000, stdin);
- tamanho=strlen(string);
- for(i=0; i<=tamanho; i++){
- if(string[i]=='a' ||string[i]=='e' || string[i]=='i' || string[i]=='o' || string[i]=='u' ){
- c++;
- }
- }
- printf("Ha %i nessa string", c);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement