about | help | code help+videos | done | prefs |
Write a method that has a non-negative integer parameter for the original number and a positive integer parameter for the base. The method converts that original number into the given base. The base can be any number from 2 to 36. toBase(424, 25) → "GO" toBase(12487, 19) → "1FB4" toBase(3598, 33) → "3A1" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 440
Copyright Nick Parlante 2017 - privacy