Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- using namespace std;
- char s[256],*p,v[]="aeiou";
- int main()
- {
- cin.getline(s,256);
- p=strtok(s," ");
- while(p)
- {
- if(strchr(v,p[0])!=NULL)
- if(strchr(v,p[strlen(p)-1])!=NULL)
- cout << p << " ";
- p=strtok(NULL," ");
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement