Advertisement
nicuvlad76

Untitled

Nov 13th, 2020
419
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.45 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. #include <fstream>
  4. using namespace std;
  5. char s[301];
  6. bool vocala(char c)
  7. {
  8.     return c=='a' || c=='e' || c=='i'|| c=='o'||c=='u';
  9. }
  10.  
  11. bool testvoc(char s[])
  12. {
  13.    for(int i=0; s[i];i++)
  14.         if(vocala(s[i])==0) return 0;
  15.    return 1;
  16. }
  17. void Citire()
  18. {
  19.     //ifstream cin("date.in");
  20.    while(cin>>s)
  21.    {
  22.        if(testvoc(s)) cout<<s<<'\n';
  23.    }
  24. }
  25.  
  26. int main()
  27. {
  28.    Citire();
  29.     return 0;
  30. }
  31.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement