eolymp
bolt
Try our new interface for solving problems
Problems

Previous and next letter

published at 4/22/24, 11:00:58 pm

include <bits/stdc++.h>

using namespace std; int main() { char a,a1,a2; cin>>a; a1=a-1; a2=a+1; cout<<a1<<" "<<a2; }

published at 4/23/24, 6:47:08 pm

include <bits/stdc++.h>

using namespace std;

int main()

{

char a, a1, a2; 
cin >> a; 
a1 = a-1;
a2 = a+1;
cout << a1 << " " << a2;

}