N while loops into recursion
Hi all,
so, i have this list of elements, and what i want to do, is firstly read a number from console,which tells the program how many elements must be excluded from the list, and then print all possible combinations of this modified element list (ElementList.lenght - n). As an example, if i have a list, that contains 7 elements, and user types into the console 2, that means that the program needs to print out all possible combinations of elements, which can be made out of any 5 elements contained in that same list.
I think that it is possible to make it with nested while loops (i wasn't able though), but only for a fixed user input number, so thats why i need to use recursion.
Ty in advance!