Advertisement
rengetsu

Codeforces_118A

Jul 20th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.55 KB | None | 0 0
  1. //Codeforces Round 118A
  2. #include <string>
  3. #include <cctype>
  4. #include <cstring>
  5. #include <iostream>
  6. using namespace std;
  7. int main()
  8. {
  9.     int len;
  10.     string s;
  11.     char mass[101];
  12.     cin >> s;
  13.     len = s.size();
  14.     strcpy(mass, s.c_str());
  15.     for(int i=0;i<len;i++)
  16.     {
  17.         mass[i] = (char)tolower(mass[i]);
  18.     }
  19.     for(int i=0;i<len;i++)
  20.     {
  21.         if(mass[i]!='a' && mass[i]!='o' && mass[i]!='y' && mass[i]!='e' && mass[i]!='u' && mass[i]!='i')
  22.         {
  23.             cout << "." << mass[i];
  24.         }
  25.     }
  26.     return 0;
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement