Advertisement
Malinovsky239

Untitled

Mar 26th, 2012
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.61 KB | None | 0 0
  1. #include <cstdio>
  2. #include <iostream>
  3. #include <algorithm>
  4. #include <cmath>
  5. #include <string>
  6.  
  7. using namespace std;
  8.  
  9. string ex = "AOYEUIaoyeui";
  10.  
  11. int main() {
  12.     string s;
  13.     cin >> s;  
  14.  
  15.     for (int i = 0; i < s.size(); i++) {    
  16.         bool pr = true;
  17.  
  18.         for (int j = 0; j < ex.size(); j++) {
  19.             if (s[i] == ex[j]) {
  20.                 pr = false;              
  21.             }
  22.         }
  23.  
  24.         if (pr) {
  25.             cout << ".";
  26.             if (s[i] >= 'A' && s[i] <= 'Z')
  27.                 s[i] += 'a' - 'A';
  28.             cout << s[i];
  29.         }
  30.     }
  31.  
  32.     return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement