#include <stdio.h> int main(void) { unsigned n; sscanf("0x3076", "%x", &n); printf("%u\n", n); return 0;}
Standard input is empty
12406
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!