Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #include <cstring>
- using namespace std;
- ifstream cin("doarvocale.in");
- ofstream cout("doarvocale.out");
- char x[31];
- int main ()
- {
- int n,cnt=0,ok;
- cin>>n;
- for (int i=1;i<=n;i++)
- {
- cin>>x;
- ok=1;
- for (int j=1;j<=strlen(x);j++)
- {
- if (!strchr("aeiou",x[j]))
- {
- ok=0;
- break;
- }
- }
- if(ok==1)
- {
- cnt++;
- }
- }
- cout<<cnt;
- cin.close();
- cout.close();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement