#include<stdio.h>
#include<conio.h>
int main()
{
char ch;
printf("Enter a chararcter: ");
ch=getche();
printf("\nThe ASCII Code for \%c is %d",ch,ch);
getch();
}
#include<conio.h>
int main()
{
char ch;
printf("Enter a chararcter: ");
ch=getche();
printf("\nThe ASCII Code for \%c is %d",ch,ch);
getch();
}