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