SHARE
TWEET

118A

a guest Jan 22nd, 2020 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5.  
  6.     string s;
  7.     cin>>s;
  8.     transform(s.begin(), s.end(), s.begin(), ::tolower);
  9.     int i,k;
  10.     k=s.size();
  11.     for(i=0; i<k; i++)
  12.     {
  13.         /*if(s[i]!='a' ||s[i]!= 'e'  ||s[i]!= 'i' ||s[i]!= 'u'||s[i]!= 'o' ||s[i]!= 'y')
  14.         {
  15.             cout<<"."<<s[i];
  16.         }*/
  17.  
  18.         if(s[i]=='o' or s[i]=='a' or s[i]=='e' or s[i]=='i' or s[i]=='u')
  19.             cout<<"";
  20.         else
  21.             cout<<"."<<s[i];
  22.  
  23.  
  24.     }
  25.  
  26.  
  27. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top