#include main() { char ch; clrscr(); do { printf("\nEnter a character: "); scanf("%s",&ch); printf("\nThe ASCII value of %c is %d",ch,ch); }while (ch!='q' || ch!='Q'); getch(); }