Counting calculation program (sort of )

Hiya,

I'm basically wanting to write a prog, that calculates the number of combinations of a number of numbers. Ie - between 1 and 9, how many 4 digit number combinations are there and so on.
I cant however seem to think of a logical way of doing this...

Could anyone offer some guidance on how to accomplish this... not write it for me, but point me in the right direction

Thanks
Last edited on
Looks like a simple problem of permutation ( if repetition is allowed) else combination.
Yeah i get that, i just cant work out how to write it...
Do you know how to do that without C++? -using just a calculator?-
If you can, write the steps you follow to get the result and then convert that into C++
I don't i'm afraid mate. Do you?
Topic archived. No new replies allowed.