Pls check code... how to arrange ans in inc order
Hello @Amishi i have corrected your code and now it is passing every test case:
https://ide.codingblocks.com/s/397405
if you have any doubt you can ask here:
Happy Learning!!
still failing … how to print in increasing order
@Amishi the code which you have shared is printing the ouput in this way:
1,2 and 71,3 and 61,4 and 52,3 and 5
but the correct output should be :
1, 2 and 7
1, 3 and 6
1, 4 and 5
2, 3 and 5
indeed your code is printing the correct result but the printing format is wrong.
you should print space after comma and then every result in new line.
this is your correct code:
Happy Learning!!