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

 

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

Write a method that returns the product of all the digits in a positive integer input parameter. You are not allowed to use any string methods or premade parsing methods (ha, ha, Hayden!)


stingDigProduct(51312) → 30
stingDigProduct(50032) → 0
stingDigProduct(1111111) → 1

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

public int stingDigProduct(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: 290

Copyright Nick Parlante 2017 - privacy