Factorial values may easily go out of hand and overflow due to their exponential nature. So if you insert very high values of "n" the output might overflow.
Please paste your output along with the input you giving, along with the function combination def. (just in case).
Also dont use system("pause") to stop the screen. Use getchar() to achieve the same function.
Long values are printed using the format specifier %ld which i dont see in your program.
Nothing more can be said unless you post your combination function along with the input which you supplied to it.
~s.o.s~
Failure as a human
11,938 posts since Jun 2006
Reputation Points: 3,281
Solved Threads: 734