Advertisement
Guest User

Untitled

a guest
May 22nd, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. int i;
  8. char s[100], voc[]="aeioum";
  9. cin.get(s, 100);
  10. for (i=0;i<strlen(s);i++)
  11. {
  12. if (strchr (voc, s[i])==NULL)
  13.  
  14. {strcpy(s+i,s+i+1);
  15. i--;}
  16.  
  17.  
  18. }
  19. cout<<s;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement