only 7 th please do I m confuse
Attachments:
Answers
Answered by
1
Answer:
Given two integers ‘n’ and ‘sum’, find count of all n digit numbers with sum of digits as ‘sum’. Leading 0’s are not counted as digits.
1 <= n <= 100 and
1 <= sum <= 500
Explanation:
Input: n = 2, sum = 2
Output: 2
Explanation: Numbers are 11 and 20
Input: n = 2, sum = 5
Output: 5
Explanation: Numbers are 14, 23, 32, 41 and 50
Input: n = 3, sum = 6
Output: 21
Similar questions
Computer Science,
4 months ago
Math,
4 months ago
Math,
4 months ago
Science,
9 months ago
Social Sciences,
9 months ago
English,
11 months ago
Music,
11 months ago