Write a program which accepts a character and
display its next character.
Sol: #include<iostream.h>
#include<conio.h>
int main()
{
char ch;
cout<< "\nEnter any character : ";
cin>>ch;
ch++;
cout<<"Next character is : "<<ch;
getch();
return 0;
}
No comments:
Post a Comment