Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save Manume/ce6ab3aa0b4f449b543e to your computer and use it in GitHub Desktop.

Select an option

Save Manume/ce6ab3aa0b4f449b543e to your computer and use it in GitHub Desktop.
Program to enter a letter and output the next 2 letters
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
char charac;
cout << "Enter your letter : " << endl;
cin>>charac;
cout << "The 2 letters are : " << endl;
cout << (char)(charac-1) << endl;
cout << (char)(charac+1) << endl;
getch();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment