Please note, that this is not a homework site. We won't do your homework for you. The purpose of homework is that you learn by doing. However we are always willing to help solve problems you encountered, correct mistakes you made in your code and answer your questions.
We didn't see your attempts to solve this problem yourself and so we cannot correct mistakes you didn't made and answer questions you didn't ask. To get help you should do something yourself and get real problems with something. If your problem is "I don't understand a thing", then you should go back to basics and study again.
You say: "read n numbers". Is that n numbers or n digits?
The problem seems to be combinatorics, enumeration of combinations.
yeah sorry , about that , i dont even know how to start , i tried storing the n digits in a array , then i did a recursive backtracking algorithm to get every combination of that array numbers , but the problem is i need to display only the good answers ... and i dont know how to verify them if they are good and i dont know either how to display the numbers with less digits than the array length (in my example on my actual code if i enter 0 2 3 i would get every combinations of 0 2 3 , but not 23 or 32 or only 3 ...)