diff --git a/c-basic/hex_read_scanf.c b/c-basic/hex_read_scanf.c new file mode 100644 index 0000000..a6e7fa5 --- /dev/null +++ b/c-basic/hex_read_scanf.c @@ -0,0 +1,12 @@ +#include + +int main() +{ + int a, b; + + printf("Enter your number : "); + scanf("%x", &a); + printf("a = %d\n", a); + + return 0; +}