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