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

 

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

Write a recursive method that returns the product of all the digits of an integer parameter. You MUST use recursion. You may assume that the input parameter will be positive.


bcd2calc(4129290) → 0
bcd2calc(2419) → 72
bcd2calc(29853) → 2160

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

public int bcd2calc(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: 230

Copyright Nick Parlante 2017 - privacy