about | help | code help+videos | done | prefs |
Write a method that accepts a positive integer "number" and an integer 2 through 10 "base". The method then returns a string representation of "number" converted to the given "base". toBase(71, 3) → "2122" toBase(984, 5) → "12414" toBase(65432, 9) → "108672" ...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