6.c++ program to get an ASCII value and display the corresponding character


 // C++ program to get an ASCII value and display the corresponding character


#include<iostream>

using namespace std;

int main()

{

    int a;

    char b;

    cout<<"\n Enter ASCII code (0 to 255):";

    cin>>a;

    b=a;

    cout<<"\n Equivalent Character:"<<b<<endl;

}


OUTPUT:





Comments

Popular posts from this blog

8.c++ program to check whether the number is even or odd

1.c++ program to find the total marks and average of three subjects

4.c++ program to compute quotient and remainder