Untitled
Anonymous
plain_text
01/15/2023 12:48 PM
352 B
16
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...