Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #include <iostream>
- #include <algorithm>
- #include <cmath>
- #include <string>
- using namespace std;
- string ex = "AOYEUIaoyeui";
- int main() {
- string s;
- cin >> s;
- for (int i = 0; i < s.size(); i++) {
- bool pr = true;
- for (int j = 0; j < ex.size(); j++) {
- if (s[i] == ex[j]) {
- pr = false;
- }
- }
- if (pr) {
- cout << ".";
- if (s[i] >= 'A' && s[i] <= 'Z')
- s[i] += 'a' - 'A';
- cout << s[i];
- }
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement