1.

You have to find the sum of digits of a number given that the number is always greater than 0. Which of the following base cases can replace the base case for the below code?

A. if(n == 0) return 1
B. if(n == 1) return 0
C. if(n == 1) return 1
D. none of the mentioned
Answer» E.


Discussion

No Comment Found