Advertisement
Guest User

Untitled

a guest
Nov 21st, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4. int main() {
  5. char s[255], *p;
  6. int k=0;
  7. cin.getline(s, 255);
  8. p=strtok(s, " ");
  9. while(p){
  10. k=0;
  11. for(int i=0; i<strlen(p); i++) {
  12. if(strchr("aeiou", p[i])== nullptr){
  13. k=1;
  14. break;
  15. }
  16.  
  17. }
  18. if (k == 0) {
  19. cout << p<<endl;
  20. }
  21. p=strtok(NULL, " ");
  22.  
  23. }
  24. return 0;
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement