I\'m looking for a way to convert hex(hexadecimal) to dec(decimal) easily. I found an easy way to do this like :
hex
dec
Well, the C way might be something like ...
#include #include int main() { int n; scanf("%d", &n); printf("%X", n); exit(0); }