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.33 KB | None | 0 0
  1. #include <iostream>
  2. #include <string.h>
  3. using namespace std;
  4.  
  5. int main(){
  6.  
  7. char a[51],vocale[]="aeiou";
  8. cin.get(a,50);
  9.  
  10. int i,nrVocale = 0;
  11. for (i = 0; i < strlen(a); i++){
  12. if (strchr(vocale,a[i]))
  13. nrVocale++;
  14.  
  15. }
  16.  
  17. cout<<"Numarul de vocale din textul citit este: "<<nrVocale<<'\n';
  18. return 0;
  19.  
  20. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement