Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<iostream>
- #include<cstring>
- using namespace std;
- char x[105],aux[105],r[105];
- int main ()
- {
- int n,m,b,s,i,nr=0;
- cin>>aux;
- cin>>x;
- for(i=0;i<strlen(x);i++)
- {
- if(strchr("AEIOUaeiou",x[i])==0)
- {
- strncpy(r+nr,x+i,1);
- nr++;
- }
- }
- strcat(r," ");
- strcat(r,aux);
- cout<<r;
- return 0;
- }
- 96
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement