about | help | code help+videos | done | prefs |
Write a method that returns the product of all the digits of a non-negative integer parameter 'num'. For example, if 'num' is 516, return 30 since 5*1*6=30. Look at the test data for further examples. quiz2023_02_28_APP1SLHL_digitProduct(7812) → 112 quiz2023_02_28_APP1SLHL_digitProduct(1234) → 24 quiz2023_02_28_APP1SLHL_digitProduct(7845) → 1120 ...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: 220
Copyright Nick Parlante 2017 - privacy