CPP PROGRAM

write a program to find the ascii value
#include<iostream.h>
#include<conio.h>
int main()

{
clrscr();
char apple;

cout<<"enter charactor=";
cin>>apple;

cout<<"ascii value is ="<<int(apple);
getch();
return 0;
}
OUTPUT
enter charactot=A
ascii value is=65 

Comments

Popular posts from this blog

new style blogging method for every blogger 2020 how to make new style blog and earn money

cpp program2