I am having trouble getting started writing a recursive function to calculate a factorial, like this:

n!/r!*(n-r)!

Where n and r and numbers entered by the user and the ! represents the factorial process. It needs to be a single function.

Any ideas on getting started?