Last active
August 29, 2015 14:01
-
-
Save Manume/ce6ab3aa0b4f449b543e to your computer and use it in GitHub Desktop.
Program to enter a letter and output the next 2 letters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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