algorithm to convert a number in an unknown base to the equivalent base 10 number [duplicate]
问题 This question already has an answer here : Closed 7 years ago . Possible Duplicate: Efficient algorithm for conversion between numeral system Given an integer, write a program that converts the given number to a number (in base 10). Hint - The given number could be in any base, but the base is