InterviewSolution
Saved Bookmarks
| 1. |
What can be the maximum sum of digits for a 4 digit number?(a) 1(b) 16(c) 36(d) 26I have been asked this question by my college professor while I was bunking the class.The query is from Sum of Digits of a Number using Recursion topic in division Recursion of Data Structures & Algorithms II |
|
Answer» CORRECT answer is (c) 36 The best I can explain: The sum of DIGITS will be MAXIMUM when all the digits are 9. Thus, the sum will be maximum for the NUMBER 9999, which is 36. |
|