Advertisement
Guest User

Untitled

a guest
Sep 15th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. #include<iostream>
  2. #include<stdio.h>
  3. #include<conio.h>
  4. using namespace std;
  5. int main()
  6. {
  7. char t[20];
  8. int f=0,g=0,z=0,a;
  9. cin>>a;
  10.  
  11.  
  12. cin>>t;
  13.  
  14. for(int i=0;t[i];i++ )
  15. {
  16. g=i;
  17.  
  18. for( int y=i;(y<=g&&t[y]);y++)
  19. { if (t[y])
  20. { if(t[y]=='a'||t[y]=='e'||t[y]=='i'||t[y]=='o'||t[y]=='u')
  21. ++f;
  22. }
  23. if((y+1)>g)
  24. {
  25. g++;
  26. y=i-1;
  27. z=z+f;
  28. f=0;
  29.  
  30. }
  31.  
  32. }
  33.  
  34. f=0;
  35.  
  36. }
  37.  
  38. cout<<z;
  39.  
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement