6 -
|
Write a program which accepts a character
and display its ASCII value.
#include<iostream.h>
#include<conio.h>
int main() { char ch; cout<< "\nEnter any character : "; cin>>ch; cout<<"ASCII equivalent is : "<<(int)ch;
getch(); return 0; } |
No comments:
Post a Comment