Untitled
unknown
plain_text
2 years ago
264 B
3
Indexable
#include <iostream> #include <string> using namespace std; int main() { string str; getline(cin, str); for (int i = 0; i < str.size(); i++) { if (str[i] != ' ') { str[i] += 2; if (str[i] > 'z')str[i] -=26; } } cout << str; }
Editor is loading...