Write a program to accept any character from the keyboard and print the Ascii value of that character.

/**************************************************************/
/*Programmed by : Vivek Patel**********************************/
/*For Bugs Free feel to contact********************************/
/*Website : www.vivekpatel.cjb.net*****************************/
/*Email : vivek_patel9@rediffmail.com**************************/
/**************************************************************/

#include
#include
void main(){
char ch;
clrscr();
printf("*****Ascii value of Character entered*****\n\n");
printf("Enter any char : ");
scanf("%c",&ch);
printf("\nAscii value of %c is %d",ch,ch);
getch();
}



Powered by Wufoo