Basiclly what im trying to to (and not for uni but for someone else) is to try and create a function to take a interger from a user and find the factorial of is.

Factorial being :

The factorial of 2 is:
The factorial of 9 is:
9 x 8x 7 x 6 x 5 x 4 x 3 x 2 x 1 = 720

So far i can do:

int num;

count<< "Please enter a interger..";
cin<< num;

now i need the funcation to somehow do the factoril bit :P

this being a error trap saying if the answer is <=0 then jsut return 0



So if anyone can help in being able to do the function bit that would be amazingly helpfull thanks sexy people

(ignore any mistakes i just that bit on the spot lol)