c-basic/scnaf-hex-test.c

9 lines
124 B
C
Raw Normal View History

2022-11-24 21:04:54 +01:00
#include <stdio.h>
int main() {
int a;
scanf("%x", &a);
printf("hex: %x dec: %d\n", a, a);
return 0;
}