about | help | code help+videos | done | prefs |
Write a method the calculates the product of 'a' and 'b' RECURSIVELY without using multiplication. Your solution MUST USE recursion and MUST NOT use multiplication. As preconditions, you may assume that both 'a' and 'b' are positive. recMult(11, 11) → 121 recMult(11, 121) → 1331 recMult(1331, 11) → 14641 ...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: 310
Copyright Nick Parlante 2017 - privacy