0
assume user can input 2 integers, let it be (15,3) so we have to print all the possible sums of 3 digits which equals input1(15)
answer should be printed as 1+2+12=15 1+3+11=15 1+4+10=15 and so on.. Note that no digits are repeating here.
2 Answers
0
Not strictly true the first digit in your example is always 1
0
no, it can be anything but it should not repeat.
@A^dr3w