Advertisement
Zinak

Untitled

Sep 7th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.28 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5.    string s="`1234567890-=qwertyuiop[]\\asdfghjkl;'zxcvbnm,./";
  6.    string c;
  7.    while(cin>>c)
  8.    {
  9.        if((c!=" ")&&(c!="\n")){size_t f=s.find(c);
  10.        cout<<s[f-1];}
  11.        else cout<<c;
  12.    }
  13.     return 0;
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement