Complicated program [closed]

-4

I'm already trying to make a program that does the following: Ask a user to type a number of numbers and then to enter the number of numbers that he wants to have in the combination and then the program prints the combinations and the quantities of combinations

    
asked by anonymous 15.05.2016 / 19:49

1 answer

1

Can these numbers be repeated? if yes, the number of combinations and N! (where N is the number of numbers he wants), if they do not repeat, N * (N-1) * (N-2) * ... * 1!

So I understand you know how many times an X number repeats within the range of 0 to N. I think you do (N!) / (N-X)!

    
15.05.2016 / 22:55