declare one character variable and read them from user, then Display its next and previous character.
I don't know what to use to make it show the next charchter
1 2 3 4 5 6 7 8
char cha;
cout<<"Please enter any charchater from the alphabet" << endl;
cin>> cha;
cout<<"The next char for" << cha << "is" << << endl;
#include <iostream>
usingnamespace std;
int main()
{
char cha;
cout<<"Please enter any charchater from the alphabet" << endl;
cin>> cha;
char next = cha+1;
char previous = cha-1;
cout<<"The next char for " << cha << " is " << next << " And the previous character is " << previous << endl;
}