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

 

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

Write a RECURSIVE method that returns the product of all the digits of 'num'. As a precondition you may assume that num>0. Your method MUST solve this problem recursively, without using any loops of any kind.


feb13_2020_SLHL_recursiveDigitMultiply(1) → 1
feb13_2020_SLHL_recursiveDigitMultiply(7) → 7
feb13_2020_SLHL_recursiveDigitMultiply(70) → 0

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

public int feb13_2020_SLHL_recursiveDigitMultiply(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: 390

Copyright Nick Parlante 2017 - privacy