Untitled

 avatar
unknown
plain_text
2 years ago
376 B
4
Indexable
#include <iostream>
#include <string>
using namespace std;
int main()
{
	string str;
	setlocale(LC_ALL, "Russian");
	cout << "Введите свой пароль: ";
	getline(cin, str);

	for (int i = 0; i < str.size(); i++)
	{
		if (str[i] != ' ') {
			str[i] += 2;
			if (str[i])str[i] -= 26;
	}
}
	cout << "Вот ваш код: ";
     cout << str;

}
Editor is loading...