Advertisement
momo2345

string 1

Jul 22nd, 2020
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. #define ana ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)
  4. bool vow(char c){
  5.  
  6.     return (c=='a'|| c=='e'||c=='i'|| c=='o'||c=='u'||c=='y');
  7. }
  8. int main()
  9. {
  10.     ana;
  11.     string s;
  12.     cin>>s;
  13.     for_each(s.begin(),s.end(),[] (char &c){
  14.              c=::tolower(c);
  15.              });
  16.     for(auto c : s){
  17.         if(vow(c)==0){
  18.             cout<<"."<<c;
  19.         }
  20.     }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement