Pages

Monday, October 3, 2011

To print ASCII character of given number


// ASCII is American Standard Code for Information Interchange
#include <iostream.h>
#include <conio.h>
void main()
{
clrscr();
int num;
cout<<"Enter the desired number";
cin>>num;
cout<<"ASCII is"<<char(num)<<endl;
getch();
}

No comments:

Post a Comment