Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #include <iostream>
  2. #include <stdio.h>
  3. #include <cstring>
  4.  
  5. using namespace.std;
  6.  
  7. int main()
  8. {char s[20];
  9. int n,i,k;
  10. k=0;
  11. gets(s);
  12. n=strlen(s);
  13. for(i=0;i<n;i++)
  14. if(strchr("aeiouAEIOU",s[i])==0)
  15. k++;
  16. cout<<"Numarul de vocale:"<<k;
  17. return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement