j

Monday, 2 November 2015

Write a program that take a character from user and display next two chararter



#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
char ch,ch1,ch2;
cout<<"Enter any character ::";
cin>>ch;
cout<<"Next two character of "<<ch<<" is ";
ch1=ch+1;
ch2=ch+2;
cout<<ch1<<" and "<<ch2;
getch();
}

Subscribe to this Blog via Email :