SHARE
TWEET

Untitled

a guest Nov 17th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top