Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<stdio.h>
- #include<conio.h>
- using namespace std;
- int main()
- {
- char t[20];
- int f=0,g=0,z=0,a;
- cin>>a;
- cin>>t;
- for(int i=0;t[i];i++ )
- {
- g=i;
- for( int y=i;(y<=g&&t[y]);y++)
- { if (t[y])
- { if(t[y]=='a'||t[y]=='e'||t[y]=='i'||t[y]=='o'||t[y]=='u')
- ++f;
- }
- if((y+1)>g)
- {
- g++;
- y=i-1;
- z=z+f;
- f=0;
- }
- }
- f=0;
- }
- cout<<z;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement