#include <stdio.h>
#include <conio.h>

int main()
{
char input_char;

   printf("Hit any key - to stop hit a $\n");
   do 
   {
      input_char = _getch();
      printf("Input character is %c, numerical value is %3d\n",
                 input_char, input_char);
   } while (input_char != '$');

   return 0;
}



/*  Result of execution

Hit any key - to stop hit a $
Input character is A, numerical value is  65
Input character is B, numerical value is  66
...
(The display depends on the input keys hit)

*/

