#include<iostream.h>
#include<conio.h>
void main(){
int ascii;
char ch;
clrscr();
cout<<"Enter a character = ";
cin>>ch;
cout<<"Ascii Value Of Given Character = "<<int(ch)<<endl;
getch();
}
#include<conio.h>
void main(){
int ascii;
char ch;
clrscr();
cout<<"Enter a character = ";
cin>>ch;
cout<<"Ascii Value Of Given Character = "<<int(ch)<<endl;
getch();
}
No comments:
Post a Comment