Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- int n,j;
- char s[301],t[301];
- bool Vocala(char c)
- {
- return c=='a'||c=='e'||c=='i'||c=='o'||c=='u';
- }
- void Solutie()
- {
- n=strlen(s);
- for(int i=0;i<n;i++)
- if(Vocala(s[i])==1)
- {
- if(Vocala(s[i+1])==1)
- {
- j=i+1;
- while(Vocala(s[j])==1)j++;
- strcpy(t,s+j);
- strcpy(s+i,t);
- }
- }
- cout<<s;
- }
- int main()
- {
- cin.getline(s,300);
- Solutie();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement