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