Advertisement
Guest User

Untitled

a guest
Feb 20th, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstring>
  3. #include <fstream>
  4. using namespace std;
  5. ifstream fin("doarvocale.in");
  6. ofstream fout("doarvocale.out");
  7. int main()
  8. {
  9. char s[50];
  10. int n,i,ok=0,nr=0,m;
  11. fin>>n;fin.get();
  12. for(i=0; i<n; i++)
  13. {
  14. fin>>s;
  15. m=strlen(s);
  16. int nv=0;
  17. for(int j=0;j<m;j++)
  18. {
  19. if(s[j]=='a'||s[j]=='e'||s[j]=='i'||s[j]=='o'||s[j]=='u') nv++;
  20. }
  21.  
  22. if(nv==m) nr++;
  23. }
  24. fout<<nr;
  25. return 0;
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement