Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- #define ana ios::sync_with_stdio(0);cin.tie(0);cout.tie(0)
- bool vow(char c){
- return (c=='a'|| c=='e'||c=='i'|| c=='o'||c=='u'||c=='y');
- }
- int main()
- {
- ana;
- string s;
- cin>>s;
- for_each(s.begin(),s.end(),[] (char &c){
- c=::tolower(c);
- });
- for(auto c : s){
- if(vow(c)==0){
- cout<<"."<<c;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement