This question already has an answer here:

You have to take a base-10 number (e.g. 735) and another number for the base to convert to, and convert the base-10 number into the equivalent number in the other base.


  • You aren't allowed to use any conversion functions built into your language

This is code-golf, the shortest answer in bytes wins!


marked as duplicate by AdmBorkBork, Geobits, Community Mar 25 '16 at 13:43

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • \$\begingroup\$ How do you propose dealing with bases above, say, 62? Do we just follow the ASCII chart for symbol progression? Could use some more clarification. \$\endgroup\$ – DoctorHeckle Mar 25 '16 at 13:42
  • \$\begingroup\$ The number will be the same, only expressed in another base. Can you give a few examples including output? \$\endgroup\$ – Luis Mendo Mar 25 '16 at 13:51