Easiest program to Print any character ASCII Code.
first user have to insert a valid character for its ascii code
Source Code:-
#include <iostream.h>
#include<conio.h>
void main()
{ clrscr();
char ascii;
cout << "Give character: ";
cin >> ascii;
cout << "Its ascii value is: "<< (int) ascii ;
cout<< "\n Created bt Tarun Rawat " ;
getch();
}
No comments:
Post a Comment