Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
389 B
0
Indexable
Never
#include <iostream>
#include <string>
using namespace std;
int main()
{
string str;
getline(cin, str);
for(int i=0;i< str.length();i++){
     if (str[i]==90){
        str[i]=66;
    }
    else if (str[i]==89){
        str[i]=65;
    }
    else if (str[i]==121){
        str[i]=97;
    }
     else if (str[i]==122){
        str[i]=98;
    }
    else if(str[i]!=32) str[i]+=2;
}
cout<<str;
}