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.

11th Jul 2017, 2:01 PM
Jay Parekh
Jay Parekh - avatar
2 Respuestas
0
Not strictly true the first digit in your example is always 1
13th Jul 2017, 11:39 AM
[A^dr3w]
[A^dr3w] - avatar
0
no, it can be anything but it should not repeat. @A^dr3w
14th Jul 2017, 3:16 AM
Jay Parekh
Jay Parekh - avatar