So what might be the shortest language for this simple task?
You are given an input of type
String - the string is a
valid hexadecimal number (
Convert it to a decimal number and print it to the console.
HEX -> DEC 1 -> 1 98 -> 152 539 -> 1337 1337 -> 4919 A5F9 > 42489 F -> 15
This is code golf - shortest code wins.
- You must take the input(like function parameter) as String.
- You must return the result as String.