the sum of all digits of 100n- n is 512.If n is a 2 digit number then what is the value of n?
Answers
Answered by
0
Step-by-step explanation:
Given a positive integers N, the task is to find the smallest number whose sum of digits is N.
Example:
Input: N = 10
Output: 19
Explanation:
1 + 9 = 10 = N
Input: N = 18
Output: 99
Explanation:
9 + 9 = 18 = N
Similar questions