Advertisement
Denistod

Untitled

Nov 17th, 2019
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include<iostream>
  2. #include<cstring>
  3. using namespace std;
  4. char x[105],aux[105],r[105];
  5. int main ()
  6. {
  7. int n,m,b,s,i,nr=0;
  8.  
  9. cin>>aux;
  10.  
  11. cin>>x;
  12. for(i=0;i<strlen(x);i++)
  13. {
  14. if(strchr("AEIOUaeiou",x[i])==0)
  15. {
  16. strncpy(r+nr,x+i,1);
  17. nr++;
  18. }
  19. }
  20. strcat(r," ");
  21. strcat(r,aux);
  22. cout<<r;
  23. return 0;
  24. }
  25. 96
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement