- 1
WRITE a program which accepts a character and display its next character!!!
2 Réponses
+ 4
include <iostream>
void main()
{
char c;
std::cin >> c;
std::cout << ++c;
}
+ 2
#include<iostream>
using namespace std;
int main()
{
char ch;
cout<< "\nEnter any character : ";
cin>>ch;
ch++;
cout<<"Next character is : "<<ch;
return 0;
}