j

Monday, 2 November 2015

Write a program that take ASCII code from user and display it corresponding character and the ask him to enter any character ther display its corresponding ASCII



#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
char ch;
int ascii;
cout<<"Enter the ASCII code ::";
cin>>ascii;
ch=ascii;
cout<<"Their corresponding character is "<<ch<<endl;
cout<<"Enetr the any character ::";
cin>>ch;
ascii=ch;
cout<<"Their corresponding ASCII value is "<<ascii;
getch();
}


Subscribe to this Blog via Email :