Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. #include <stdio.h>
  2. using namespace std;
  3. char S[251];
  4. int i,n;
  5. int voc (char S[256])
  6. {
  7. ok=1;
  8. for (i=0;i<strlen(S);i++)
  9. if (S[i]=='a' || S[i]=='e' || S[i]=='o' || S[i]=='i' || S[i]=='u')
  10. ok=0;
  11. return ok;
  12. }
  13. int main()
  14. {
  15. cout<< "n=";cin>>n;
  16. for (i=1;i<=n;i++)
  17. {
  18. cin>>S;
  19. if (voc(S)==1) nr++;
  20. }
  21. cout<<nr;
  22.  
  23. return 0;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement