Wednesday, 8 July 2015

Alphabet to ASCII in C++

#include<iostream>
#include<conio.h>
using namespace std;
int main()
{
char a;
int b;
cout<<"Enter Alphabet: ";
cin>>a;
b=(int)a;
cout<<b;
return 0;
}

0 comments:

Post a Comment