Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
383 B
0
Indexable
Never
#include <iostream>
#include <math.h>
#include <string>


using namespace std;




int main()
{
	int n;
	string str;
	n = 2;
	getline(cin, str, ';');
	
	for (int i = 0; i < str.length(); i++)
	{   
		if (str[i]==122)str[i] = 98;
		if (str[i] == 121)str[i] = 97;
		
		
		if (str[i] == 32)str[i] = 32;
		else str[i] = char(str[i]) + n;
	}
		
	cout << str;
}