Answer to Question #21886 in C++ for pavi

Question #21886
a c++ program source code to get a alphabet letter and output is next two letter of given alphabet number
1
Expert's answer
2013-01-14T09:18:46-0500
#include <iostream>
using namespace std;

int main()
{
cout << "& Enter a letter: ";
char l;
cin>>l;
int code = (int) l;
cout << "Next two letters: "<<(char)(code+1)<<" and "<<(char)(code+2)<< endl;
return 0;
}

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Assignment Expert
09.01.15, 14:00

Questions in this section are answered for free. We work on all questions 
and publish answers after verification. There is no guarantee of answering 
certain question  but we are  doing our best. Although  if you have serious 
assignment that requires large amount of work and hence cannot be done for 
free  you can submit it as assignment and our experts will surely assist you.

shafaq khan
03.12.14, 14:45

good source code but programmer should specify the header files accurately .

Leave a comment

Ask Your question

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS