c-course/c-basic/hex_read_scanf.c
2025-03-21 13:10:07 +03:00

13 lines
139 B
C

#include <stdio.h>
int main()
{
int a, b;
printf("Enter your number : ");
scanf("%x", &a);
printf("a = %d\n", a);
return 0;
}