c-basic/scnaf-hex-test.c

9 lines
124 B
C

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