Apkawa

Untitled

May 26th, 2020
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2. #include <Windows.h>
  3. using namespace std;
  4.  
  5. string a;
  6.  
  7. int main() {
  8.     SetConsoleCP(1251);
  9.     SetConsoleOutputCP(1251);
  10.  
  11.     cin >> a;
  12.     for (auto i : a) {
  13.         if (i == 'ё') {
  14.             cout << 'ж';
  15.             continue;
  16.         }
  17.         if (i == 'Ё') {
  18.             cout << 'Ж';
  19.             continue;
  20.         }
  21.         if (i == 'я') {
  22.             cout << 'а';
  23.             continue;
  24.         }
  25.         if (i == 'Я') {
  26.             cout << 'А';
  27.             continue;
  28.         }
  29.         ++i;
  30.         cout << i;
  31.     }
  32.  
  33.     return 0;
  34. }
Advertisement
Add Comment
Please, Sign In to add comment