3.c++ Program to accept any character and display its next character


 // C++ Program to accept any character and display its next character

INPUT:

#include<iostream>

using namespace std;

int main()

{

    char a;

    cout<<"\n Enter a character:";

    cin>>a;

    a=a+1;

cout<<"\n The Next character:"<<a<<"\n";

}

OUTPUT:




Comments