Hi, guys.

I don't speak Englisher very well
Anyway, I have a problem

U can see the process I intend below

1. get 2 numbers from user
eg) A=2, B=3 (A is amount of 1, B is amount of 0 )
I don't know how to explain, but the result I want is like this.

--------------------------------------------------------

0. 1 1 0 0 0

1. 1 0 1 0 0

2. 1 0 0 1 0

3. 1 0 0 0 1

4. 0 1 1 0 0

5. 0 1 0 1 0

6. 0 1 0 0 1

7. 0 0 1 1 0

8. 0 0 1 0 1

9. 0 0 0 1 1

--------------------------------------------------------

I wanna arrange all cases without repetition

According to an ancient mathematician,
amount of all cases is (A+B)!/(A!*B!) 입니다.

from eg, 5!/3!2! = 10

I'll be so much appreciated If you give me a full code and detailed information or any idea or algorithm.

Thank you guys!
have a good day