Advertisement
Guest User

Untitled

a guest
Nov 16th, 2018
96
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 s[256],*p,v[]="aeiou";
  5. int main()
  6. {
  7. cin.getline(s,256);
  8. p=strtok(s," ");
  9. while(p)
  10. {
  11. if(strchr(v,p[0])!=NULL)
  12. if(strchr(v,p[strlen(p)-1])!=NULL)
  13. cout << p << " ";
  14. p=strtok(NULL," ");
  15. }
  16. return 0;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement