Complicated program

Asked

Viewed 71 times

-4

I’ve been trying for a while to make a program that does the following: Ask a user to enter a number amount and then to enter the number amount he wants to have in the combination and then the program prints out the combinations and the amount of combinations

  • Welcome to Stackoverflow. I don’t understand your problem, could you add more information and be more specific? Do you have any code? What would these combinations look like? Make one tour to learn how the site works.

  • C#, C and Visual G are different languages from each other, just to start the subject.

1 answer

1

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

From what 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)!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.