Wednesday 4 February 2015

C++ Program to Find ASCII Value of a Character

C++ Program to Find ASCII Value of a Character
#include <iostream>

using namespace std;

int main(){
 char ascii;
 cout << "Enter a character: ";
 cin >> ascii;
 cout << "Its ascii value is: " << (int) ascii << endl;
 return 0;
}

No comments:

Post a Comment