Advertisement
moraradu

v96_2009_s2_ex5

Nov 17th, 2019
124
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4. char n[21],p[21],np[42];
  5. int main()
  6. {
  7. int i;
  8. cin>>n>>p;
  9. for(i=0; i<strlen(p); i++)
  10. {
  11. if(strchr("aeiou",p[i])==0)
  12. {
  13. strncat(np,p+i,1);
  14. }
  15. }
  16. strcat(np," ");
  17. strcat(np,n);
  18. cout<<np;
  19. return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement