about | help | code help+videos | done | prefs |
Write a method that converts 'origNum' to base 'base' and returns as string as shown in the test data. As preconditions you may assume that 'origNum' will be greater than zero and that 'base' will be between 2 and 10 inclusive. test2020_10_29_SLHL_writeInBase(42151, 3) → "42151 = 2010211011 base 3" test2020_10_29_SLHL_writeInBase(5, 2) → "5 = 101 base 2" test2020_10_29_SLHL_writeInBase(325643, 10) → "325643 = 325643 base 10" ...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: 290
Copyright Nick Parlante 2017 - privacy