Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string.h>
- using namespace std;
- int main(){
- char a[51],vocale[]="aeiou";
- cin.get(a,50);
- int i,nrVocale = 0;
- for (i = 0; i < strlen(a); i++){
- if (strchr(vocale,a[i]))
- nrVocale++;
- }
- cout<<"Numarul de vocale din textul citit este: "<<nrVocale<<'\n';
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement