This problem is giving me a real headache...

Using two input variables, number_of_units and max_number, produce this number sequence...

e.g.

number_of_units = 3;

max_number = 5;

...must produce this number sequence...

1 2 3

1 2 4

1 2 5

1 3 4

1 3 5

1 4 5

2 3 4

2 3 5

2 4 5

3 4 5

It must work for any input values ( though number_of_units is always less than max_number ).

I thought it would be easy, but I've tried so hard and failed that I can't event think straight anymore!! Can anyone help?

Thanks...