Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #include <cstring>
- using namespace std;
- ifstream f("doarvocale.in");
- ofstream g("doarvocale.out");
- int main()
- {
- string s;
- int n,k=0;
- f>>n;
- for(int i=0;i<n;i++)
- {f>>s;
- int nr=0;
- for(int j=0;j<s.length();j++)
- if(s[j]=='a'||s[j]=='e'||s[j]=='i'||s[j]=='o'||s[j]=='u')
- nr++;
- if(nr==s.length())
- k++;
- }
- g<<k;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement