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

 

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

Write a method that has an integer input parameter. Return the "plus-one product of the digits" which means to multiply, not the digits of the number, but one more than each digit in the number. For example, prodDigOne(25) return 18 since 3 (2 plus 1) time 6 (5 plus one) is 18.


prodDigOne(0) → 1
prodDigOne(5) → 6
prodDigOne(23) → 12

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

public int prodDigOne(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: 210

Copyright Nick Parlante 2017 - privacy