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