#include <stdio.h> #include <conio.h> int main(){ char c; //press a character or a key c = getch(); printf("%d",c); return 0; }