#include int hex_scan() { int a; printf("Enter a number : "); scanf("%x", &a); printf("a = %d\n", a); return 0; }