Advertisement
sajid161

4:5

Dec 31st, 2020
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.47 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int arr[5];
  4. bool vowel(char c)
  5. {
  6.     return (c=='a'||c=='e'||c=='i'||c=='o'||c=='u');
  7. }
  8. int main()
  9. {
  10.  
  11.     int t=3;
  12.     for(int i=0;i<t;i++)
  13.     {
  14.         string s;
  15.         getline(cin,s);
  16.         int coun=0;
  17.         for(int j=0;j<s.size();j++)
  18.         {
  19.             if(vowel(s[j])) coun++;
  20.         }
  21.         arr[i]=coun;
  22.     }
  23.     if(arr[0]==5&&arr[1]==7&&arr[2]==5) cout<<"YES";
  24.     else cout<<"NO";
  25.  
  26. }
  27.  
  28.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement