Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- char a[202],aux[202];
- int main()
- {
- int i,ok=0;
- cin.getline(a,202);
- for(i=0;i<strlen(a);i++)
- {
- if(strchr("aeiouAEIOU",a[i])!=0)
- {
- ok++;
- strcpy(aux,a+i+1);
- a[i+1]='*';
- strcpy(a+i+2,aux);
- }
- }
- if(ok>0)
- cout<<a;
- else
- cout<<"FARA VOCALE";
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement