Computer Science, asked by suramya58, 9 months ago

only 7 th please do I m confuse ​

Attachments:

Answers

Answered by Yashicaruthvik
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