Share your repls and programming experiences

← Back to all posts
Number of Solutions
Ohcsnad (0)

Given the equation x1+x2+x3...+xn = C, and x1+x2+x3...+xn are non-negative integers, when the user inputs a value for n and C, the total number of solutions will be printed.