1.

What can be the minimum sum of digits for a 4 digit number?(a) 0(b) 1(c) 16(d) 36The question was asked in an interview for job.My doubt is from Sum of Digits of a Number using Recursion in section Recursion of Data Structures & Algorithms II

Answer»

The correct option is (b) 1

The BEST I can explain: The SUM of DIGITS will be minimum for the number 1000 and the sum is 1.



Discussion

No Comment Found

Related InterviewSolutions