PROGRAM OF ASCII VALUE

//WAP to diaplay value of 'A'(in ASCII)
#include<iostream.h>
#include<stdlib.h>
void main()
{
char ch='A';
int num;
cout<<"enter the ch";
cin>>ch;
num=ch;
cout<<"display the value"<<num;
system("pause");
}

Comments