I have a problem with a program I'm writing. It's supposed to find the factorial of the number you input, but it's not. The problem seems to be that the recursive function isn't...well...recursing. Right now, when compiled, the program multiplies the number by the number before it. So if it's 5 that you put in, it gives you 20, instead of 120, which it would if the factorial thing worked.
Don't tell me the whole answer to the problem; it would be nice if you could just point me in the right direction.
Oh, and please remember that I'm a novice. I've only been coding lightly for about 3 or 4 months, perhaps.