Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <cstring>
- #include <fstream>
- using namespace std;
- char s[301];
- bool vocala(char c)
- {
- return c=='a' || c=='e' || c=='i'|| c=='o'||c=='u';
- }
- bool testvoc(char s[])
- {
- for(int i=0; s[i];i++)
- if(vocala(s[i])==0) return 0;
- return 1;
- }
- void Citire()
- {
- //ifstream cin("date.in");
- while(cin>>s)
- {
- if(testvoc(s)) cout<<s<<'\n';
- }
- }
- int main()
- {
- Citire();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement