j

Monday, 2 November 2015

Write a program that take character from user and display it ASCII



#include<iostream.h>
#include<conio.h>
void main()
{
clrscr();
char a;
int b;
cout<<"Enter any character ::";
cin>>a;
b=a;
cout<<"The ASCII code of "<<a<<"is "<<b;
getch();
}

Subscribe to this Blog via Email :