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