One test case is wrong but i did how it is described in hint

what type of input it takes, please check.
suggest me how to think in this type of questions when this type of input is given. link of the code is https://ide.codingblocks.com/s/94294

Hi @Nitesh_kumar, your code is not printing all possible outputs. For example, consider the following test case:
6
7
6
4
3
2
1
12
Your output is:
1, 4 and 7
2, 4 and 6

It does not contain 2, 3 and 7 while it also sums to 12.
Try to modify your code to print all possible triplets.
If doubt still persists, reply to this thread else mark it as resolved.

please suggest me why while loop not worked properly and also the condition statisfies but it not working well, please check my code and suggest me link is https://ide.codingblocks.com/s/95006

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.