Advertisement
Guest User

Untitled

a guest
Oct 22nd, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4. char s[256],voc[6]="aeiou";
  5. int i,l,j;
  6. int main()
  7. {cin.getline(s,256);
  8. l=strlen(s);
  9. for(i=0;i<l-1;++i)
  10. if((strchr(voc,s[i])>0) && (strchr(voc,s[i+1])>0))
  11. ++j;
  12.  
  13.  
  14. cout<<j;
  15. return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement