about | help | code help+videos | done | prefs |
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) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 210
Copyright Nick Parlante 2017 - privacy