Given an equation A + B + C = X, where X is a constant, and A,B,C are nonnegative integers, I need to list all the possible equation solutions and how many solutions there are.
//the user should be able to enter a number greater then 10 [e.g. A=11; B=15; C=2]
e.g.
user enters: A=1; B=1; C=1; X=3
solution1: 3:0:0
solution2: 2:1:0
solution3: 1:1:1
//and so on until you get all the possible combinations, then you print out the
total number of solutions: ***
I really appreciate any help.
//the user should be able to enter a number greater then 10 [e.g. A=11; B=15; C=2]
e.g.
user enters: A=1; B=1; C=1; X=3
solution1: 3:0:0
solution2: 2:1:0
solution3: 1:1:1
//and so on until you get all the possible combinations, then you print out the
total number of solutions: ***
I really appreciate any help.