id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

jebbert@volusia.k12.fl.us > wrapNumber
prev  |  next  |  chance

Write a recursive method that "wraps" a number with zeros. This method MUST accomplish this using non-trivial recursion. Look at the test-data for examples. The input integer will be positive and small enough that the result is less than MaxInt.


wrapNumber(4571) → 4050701
wrapNumber(214) → 20104
wrapNumber(4) → 4

...Save, Compile, Run (ctrl-enter)

public int wrapNumber(int num) }

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Java Help

Misc Code Practice

Difficulty: 340

Copyright Nick Parlante 2017 - privacy