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