Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int arr[5];
- bool vowel(char c)
- {
- return (c=='a'||c=='e'||c=='i'||c=='o'||c=='u');
- }
- int main()
- {
- int t=3;
- for(int i=0;i<t;i++)
- {
- string s;
- getline(cin,s);
- int coun=0;
- for(int j=0;j<s.size();j++)
- {
- if(vowel(s[j])) coun++;
- }
- arr[i]=coun;
- }
- if(arr[0]==5&&arr[1]==7&&arr[2]==5) cout<<"YES";
- else cout<<"NO";
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement