Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <string.h>
- int main()
- {
- int i,counter = 0;
- char text[200];
- printf("Entre com um texto :\n");
- gets(text);
- for (i = 0; i < strlen(text); i++)
- {
- if (text[i] == 'a' || text[i] == 'e' || text[i] == 'i' || text[i] == 'o' || text[i] == 'u')
- if (text[i+1] == 'a' || text[i+1] == 'e' || text[i+1] == 'i' || text[i+1] == 'o' || text[i+1] == 'u')
- {
- counter++;
- }
- }
- printf("Texto possui %d ocorrencias de vogais juntas.\n",counter);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment