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