Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- char s[256],voc[6]="aeiou";
- int i,l,j;
- int main()
- {cin.getline(s,256);
- l=strlen(s);
- for(i=0;i<l-1;++i)
- if((strchr(voc,s[i])>0) && (strchr(voc,s[i+1])>0))
- ++j;
- cout<<j;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement