Question: Recursion Question Question 3: Consider the following code. strange(n) Input: an integer n > 1 Output: ???? if n=1 then return 1 else if n
Recursion Question

Question 3: Consider the following code. strange(n) Input: an integer n > 1 Output: ???? if n=1 then return 1 else if n % 10 == 0 then || check if n is divisible by 10 return strange(n/10) else return strangen 1)+1 3 Insert page here What is strange(2019)? strange(2019) = strange (2019-1) + 1 strange(2018) + 1 =
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
