Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include<string.h>
- using namespace std;
- char aux[251];
- int main()
- { char s[251],c[2];
- int i=0;
- cin.get(s,251);
- while (i<strlen(s))
- {if(strchr("aeiou",s[i])!=NULL)
- {strcpy(aux,s+i+1);
- c[0]=s[i]-32;
- c[1]=NULL;
- strcpy(s+i+1,c);
- strcpy(s+i+2,aux);
- i=i+2;}
- else
- i++;
- }
- cout<<s;}
- varianta 6
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement