Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <stdio.h>
- #include <cstring>
- using namespace.std;
- int main()
- {char s[20];
- int n,i,k;
- k=0;
- gets(s);
- n=strlen(s);
- for(i=0;i<n;i++)
- if(strchr("aeiouAEIOU",s[i])==0)
- k++;
- cout<<"Numarul de vocale:"<<k;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement